/* ==============================================================================
   Project Khoj Ghor — UI Components & Interactive Modules
   Humanized, clean, trustworthy light aesthetic
============================================================================== */

/* ==============================================================================
   1. Platform Category Pills & Browse by Category Cards
============================================================================== */
#marketplace,
main.container,
.browse-category-section,
.browse-category-header {
  position: relative;
  z-index: 1 !important;
}

.browse-category-section {
  margin-bottom: 2.25rem;
}

.browse-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.browse-category-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin: 0;
}

.browse-category-view-all {
  background: transparent;
  border: none;
  color: #ea580c;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.browse-category-view-all:hover {
  color: #c2410c;
  background: #fff7ed;
  transform: translateX(2px);
}

.browse-category-view-all .arrow {
  transition: transform var(--transition-fast);
}

.browse-category-view-all:hover .arrow {
  transform: translateX(3px);
}

.browse-category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.15rem;
}

@media (max-width: 1100px) {
  .browse-category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .browse-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.category-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1.25rem 0.85rem 1.05rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  user-select: none;
  position: relative;
  text-decoration: none;
}

.category-card:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.category-card.active {
  border-color: #059669;
  background: #f0fdf4;
}

.category-card-icon-wrap {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.category-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.2px;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.category-card.active .category-card-title {
  color: #047857;
}

.category-card-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #4b5563;
  background: #f3f4f6;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  display: inline-block;
}

.category-card.active .category-card-count {
  background: #dcfce7;
  color: #15803d;
}

.platform-bar-section {
  margin-bottom: 2rem;
}
.platform-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.3px;
  color: #0f172a;
}
.heading-badge {
  display: none !important;
}

.platform-pills-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.25rem 0.1rem 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}
.platform-pills-row::-webkit-scrollbar {
  height: 5px;
}
.platform-pills-row::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  user-select: none;
}
.platform-pill svg {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.platform-pill:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: #94a3b8;
  transform: translateY(-1px);
}
.platform-pill:hover svg {
  color: var(--text-primary);
}
.platform-pill.active {
  background: #ecfdf5;
  border-color: var(--accent-emerald);
  color: #047857;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.12);
}
.platform-pill.active svg {
  color: #047857;
}
.pill-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #64748b;
  margin-left: 0.2rem;
}
.platform-pill.active .pill-count-badge {
  background: #d1fae5;
  color: #047857;
}

/* ==============================================================================
   2. Filter & Sort Toolbar
============================================================================== */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.filter-group-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.filter-group-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Toggle Switch */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  background: #cbd5e1;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast);
}
.toggle-wrap.active .toggle-switch {
  background: var(--accent-emerald);
}
.toggle-wrap.active .toggle-switch::after {
  transform: translateX(16px);
}

.custom-select {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.custom-select:focus {
  border-color: var(--accent-emerald);
}

/* ==============================================================================
   Advanced Filter Toolbar Trigger & Panel (Humanized, Commercial Grade)
   ============================================================================== */

/* Toolbar Divider */
.toolbar-divider {
  width: 1px;
  height: 22px;
  background: var(--border-subtle, #e2e8f0);
  margin: 0 0.25rem;
  flex-shrink: 0;
}

/* Advance Filter Button in Toolbar */
.btn-advance-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  background: #ffffff;
  border: 1px solid var(--border-medium, #cbd5e1);
  border-radius: 20px;
  color: var(--text-primary, #0f172a);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.btn-advance-filter:hover {
  border-color: #059669;
  color: #047857;
  background: #f0fdf4;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.12);
}
.btn-advance-filter.active {
  background: #ecfdf5;
  border-color: #059669;
  color: #047857;
  box-shadow: 0 0 0 1.5px #059669, 0 2px 6px rgba(5, 150, 105, 0.18);
}
.af-btn-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  transition: transform 0.15s ease;
}
.btn-advance-filter:hover .af-btn-icon-wrap {
  transform: scale(1.08);
}
.af-btn-text {
  letter-spacing: -0.01em;
}
.af-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #64748b);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
  margin-left: 0.1rem;
}
.btn-advance-filter.active .af-chevron {
  transform: rotate(180deg);
  color: #047857;
}
.advance-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #059669;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

/* ==============================================================================
   Advanced Filter Panel (Mobile & PC Responsive)
   ============================================================================== */
.advance-filter-panel {
  background: #ffffff;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.02);
  animation: afFadeSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes afFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.af-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle, #f1f5f9);
}
.af-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.af-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.af-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0;
  line-height: 1.25;
}
.af-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
  margin: 0.15rem 0 0 0;
  line-height: 1.3;
}
.af-close-btn {
  background: #f8fafc;
  border: 1px solid var(--border-subtle, #e2e8f0);
  color: var(--text-muted, #64748b);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.af-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}

.af-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.15fr;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}
.af-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.af-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #edf2f7;
}
.af-col-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.af-col-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* Filter pills (Category & Presets) */
.af-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.af-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.7rem;
  border-radius: 7px;
  border: 1px solid var(--border-medium, #cbd5e1);
  background: #ffffff;
  color: var(--text-secondary, #334155);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  font-family: inherit;
}
.af-pill:hover {
  border-color: #94a3b8;
  color: var(--text-primary, #0f172a);
  background: #f1f5f9;
}
.af-pill.active {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}
.af-pill.active svg path,
.af-pill.active svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}
.af-pill.active span {
  color: #ffffff !important;
}

/* Numeric custom inputs */
.af-inputs-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}
.af-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.af-input-prefix {
  position: absolute;
  left: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  pointer-events: none;
}
.af-input {
  width: 100%;
  padding: 0.45rem 0.55rem 0.45rem 1.65rem;
  font-size: 0.84rem;
  border: 1px solid var(--border-medium, #cbd5e1);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-primary, #0f172a);
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.af-input.no-prefix {
  padding-left: 0.65rem;
}
.af-input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}
.af-input-sep {
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
  flex-shrink: 0;
}

/* Footer Action Bar */
.af-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border-subtle, #f1f5f9);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.af-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px dashed var(--border-medium, #cbd5e1);
  border-radius: 7px;
  color: var(--text-muted, #64748b);
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.af-clear-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}
.af-footer-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.af-results-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 0.35rem 0.8rem;
  border-radius: 7px;
  border: 1px solid #a7f3d0;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}
.af-results-meta.af-meta-neutral {
  color: #334155;
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.af-results-meta.af-meta-matching {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.af-results-meta.af-meta-empty {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}
.af-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #059669, #047857);
  border: 1px solid #047857;
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
  transition: all 0.15s ease;
  font-family: inherit;
}
.af-apply-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

/* ==============================================================================
   Active Filters Bar
   ============================================================================== */
.active-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.75rem 0 1.5rem;
  padding: 0.5rem 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 8px;
}
.active-filters-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary, #475569);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 0.25rem;
}
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.active-filter-chip-remove {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: all 0.15s ease;
}
.active-filter-chip-remove:hover {
  color: #ef4444;
  background: #fee2e2;
}
.active-filter-clear-all {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.2rem 0.4rem;
  transition: color 0.15s ease;
}
.active-filter-clear-all:hover {
  color: #dc2626;
}

/* ==============================================================================
   Mobile Responsiveness for Advanced Filter (< 768px)
   ============================================================================== */
@media (max-width: 768px) {
  .af-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .advance-filter-panel {
    padding: 1rem;
    margin-bottom: 1.25rem;
  }
  .af-pill {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    min-height: 38px;
  }
  .af-input {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
  .af-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .af-footer-right {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .af-apply-btn, .af-clear-btn {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }
  .af-results-meta {
    text-align: center;
  }
  .active-filters-bar {
    margin: -0.5rem 0 1.25rem;
    padding: 0.5rem;
  }
  .active-filter-clear-all {
    margin-left: 0;
    width: 100%;
    text-align: right;
  }
}

/* ==============================================================================
   3. Marketplace Asset Grid & Cards
   ============================================================================== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

/* ==============================================================================
   Marketplace Pagination (max 9 products per page)
   ============================================================================== */
.marketplace-pagination {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: -1.5rem 0 3.5rem;
}
.marketplace-pagination-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.marketplace-page-numbers {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.marketplace-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}
.marketplace-page-btn:hover {
  border-color: #10b981;
  color: #047857;
  transform: translateY(-1px);
}
.marketplace-page-btn.active {
  background: linear-gradient(135deg, #059669, #047857);
  border-color: #047857;
  color: #ffffff;
  box-shadow: 0 6px 16px -4px rgba(5, 150, 105, 0.45);
}
.marketplace-page-nav {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.marketplace-page-nav:hover:not(:disabled) {
  border-color: #10b981;
  color: #047857;
}
.marketplace-page-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.marketplace-pagination-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 640px) {
  .marketplace-pagination {
    margin: -1rem 0 2.5rem;
  }
  .marketplace-page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
  .marketplace-page-nav {
    width: 36px;
    height: 36px;
  }
  .marketplace-pagination-meta {
    font-size: 0.76rem;
  }
}

.listing-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.listing-card:hover {
  border-color: #9ca3af;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Searched Product Highlight Pulse Animation */
@keyframes searchedProductPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 112, 36, 0.65);
    border-color: var(--site-accent, #ff7024);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 112, 36, 0.25);
    border-color: var(--site-accent, #ff7024);
  }
  100% {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    border-color: var(--border-subtle);
  }
}
.listing-card.searched-product-highlight {
  animation: searchedProductPulse 1.6s ease-out 1;
}

/* Uniform 16:9 Image Frame: Fixed uniform frame with full actual image centered inside (video-player style pillarbox/letterbox) */
.card-image-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  overflow: hidden;
  background: #090d16;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image-blur-bg {
  position: absolute;
  top: -15%;
  left: -15%;
  width: 130%;
  height: 130%;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.38);
  transform: scale(1.08);
  pointer-events: none;
  z-index: 0;
}
.card-product-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-fast);
}
.listing-card:hover .card-product-img {
  transform: scale(1.03);
}
.card-image-overlay-top {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
}
.card-image-overlay-bottom {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 3;
}
.meta-item-dark {
  background: rgba(17, 24, 39, 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Card Header Bar (Fallback) */
.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #fafafa;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
}
.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* Clean, Humanized Platform Tags (No Neon) */
.tag-youtube { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.tag-facebook { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.tag-freefire { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }
.tag-pubg { background: #fefce8; color: #ca8a04; border: 1px solid #fef08a; }
.tag-tiktok { background: #f8fafc; color: #0f172a; border: 1px solid #e2e8f0; }
.tag-instagram { background: #fdf2f8; color: #db2777; border: 1px solid #fbcfe8; }
.tag-whatsapp { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.tag-telegram { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }
.tag-website { background: #f0fdf4; color: #059669; border: 1px solid #bbf7d0; }
.tag-others { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

.card-meta-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.76rem;
}
.monetized-badge {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Card Body */
.card-body {
  padding: 1.15rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.listing-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.9rem;
}

/* Metrics Chips */
.metrics-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}
.metric-chip {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.metric-chip svg {
  color: var(--text-muted);
}
.metric-chip.highlight {
  border-color: #fde68a;
  color: #b45309;
  background: #fef3c7;
}

/* Price Row */
.card-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}
.price-currency {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}
.price-symbol {
  color: var(--accent-emerald);
  margin-right: 1px;
}
.original-price {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Seller Strip */
.card-seller-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: #fafafa;
  border-top: 1px solid var(--border-subtle);
}
.seller-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.seller-avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: #ffffff;
  overflow: hidden;
}
.seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.seller-text {
  display: flex;
  flex-direction: column;
}
.seller-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}
.seller-rating {
  font-size: 0.72rem;
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.seller-badge-pill {
  font-size: 0.7rem;
  color: #047857;
  background: #ecfdf5;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}
.seller-badge-pill.seller-badge-verified {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.seller-badge-pill.seller-badge-unverified {
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

/* Actions Row */
.card-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

/* Sold Stamp Overlay */
.listing-card.sold-card {
  opacity: 0.9;
}
.sold-watermark-stamp {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  background: rgba(220, 38, 38, 0.95);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 2px;
  padding: 0.4rem 1.8rem;
  border: 2px dashed #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 5;
}
.sold-payout-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

/* ==============================================================================
   4. Recently Sold Section
============================================================================== */
.recently-sold-section {
  padding: 2.75rem 0;
  background: #f8fafc;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  margin-bottom: 4rem;
}

.recently-sold-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
}
@media (max-width: 992px) {
  .recently-sold-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  .recently-sold-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==============================================================================
   5. Escrow Stepper
============================================================================== */
.how-it-works-section {
  padding: 3.5rem 0;
  margin-bottom: 4rem;
}
.stepper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  position: relative;
  margin-top: 2.25rem;
}
@media (min-width: 900px) {
  .stepper-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: repeating-linear-gradient(90deg, #cbd5e1 0px, #cbd5e1 6px, transparent 6px, transparent 12px);
    z-index: 0;
  }
}
.step-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.step-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.step-number {
  position: absolute;
  top: -14px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}
.step-icon-wrap {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
}
.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}
.step-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.how-it-works-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-subtle);
}
.how-it-works-actions .btn {
  text-decoration: none;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}
.how-it-works-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==============================================================================
   6. Reviews
============================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.review-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.review-stars {
  color: var(--accent-amber);
  font-size: 0.86rem;
  margin-bottom: 0.5rem;
}
.review-comment {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  font-style: italic;
}
.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.reviewer-avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--accent-emerald);
}
.reviewer-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}
.review-asset-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==============================================================================
   7. Modals
============================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  z-index: 30000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  padding: 1.5rem;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-container {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-dropdown);
  position: relative;
  transform: translateY(12px) scale(0.99);
  transition: all var(--transition-normal);
  padding: 1.75rem;
}
.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.modal-close-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}
.modal-close-btn:hover {
  background: var(--border-medium);
  color: var(--text-primary);
}

/* Forms */
.form-group {
  margin-bottom: 1.15rem;
}
.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Escrow Shield Banner */
.escrow-shield-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.shield-icon {
  font-size: 1.4rem;
  color: var(--accent-emerald);
  flex-shrink: 0;
}
.shield-text h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 0.15rem;
}
.shield-text p {
  font-size: 0.8rem;
  color: #047857;
  line-height: 1.45;
}

/* Payment Selector Grid */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.pay-method-card {
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.pay-method-card:hover, .pay-method-card.active {
  border-color: var(--accent-emerald);
  background: #ecfdf5;
}
.pay-method-name {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.15rem;
  color: var(--text-secondary);
}

/* Timer Countdown */
.timer-countdown-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 0.9rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.timer-digits {
  font-size: 1.7rem;
  font-weight: 800;
  color: #b45309;
  font-family: monospace;
  letter-spacing: 2px;
}
.timer-caption {
  font-size: 0.76rem;
  color: #92400e;
  margin-top: 0.2rem;
}

/* Credentials Box */
.credentials-box {
  background: #f8fafc;
  border: 1px dashed #0284c7;
  border-radius: var(--radius-md);
  padding: 0.9rem;
  margin-bottom: 1.25rem;
  font-family: monospace;
  font-size: 0.88rem;
  color: #0369a1;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Auth modal tab active state */
.auth-tab-btn.active {
  background: var(--accent-emerald) !important;
  color: #ffffff !important;
  border-color: var(--accent-emerald) !important;
}

/* ==============================================================================
   8. User Dropdown Menu
============================================================================== */
.user-menu-wrapper {
  position: relative;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  padding: 0.65rem;
  z-index: 20050 !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all var(--transition-fast);
  isolation: isolate;
}
.user-dropdown-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.dropdown-avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: transparent !important;
  color: var(--text-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  overflow: hidden;
}
.dropdown-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.dropdown-user-details {
  flex: 1;
  overflow: hidden;
}
.dropdown-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-handle {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.dropdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 0.08rem 0.4rem;
  border-radius: var(--radius-full);
  margin-top: 0.2rem;
  border: 1px solid #a7f3d0;
}

.dropdown-balance-box {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  margin: 0.6rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.balance-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}
.balance-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.dropdown-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.dropdown-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}
.dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--accent-emerald);
}
.dropdown-item:hover svg {
  color: var(--accent-emerald);
}
.dropdown-chip {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 0.08rem 0.35rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.35rem 0;
}
.dropdown-logout {
  color: var(--accent-rose);
}
.dropdown-logout svg {
  color: var(--accent-rose);
}
.dropdown-logout:hover {
  background: var(--accent-rose-light);
  color: var(--accent-rose);
}

/* ==============================================================================
   9. Account Settings Modal Suite
============================================================================== */
.settings-modal-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  min-height: 420px;
}
@media (max-width: 768px) {
  .settings-modal-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.settings-nav-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-right: 1px solid var(--border-subtle);
  padding-right: 0.85rem;
}
@media (max-width: 768px) {
  .settings-nav-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-right: 0;
    padding-bottom: 0.65rem;
    flex-direction: row;
    overflow-x: auto;
  }
}

.settings-nav-tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.settings-nav-tab svg {
  color: var(--text-muted);
}
.settings-nav-tab:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.settings-nav-tab.active {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.settings-nav-tab.active svg {
  color: #047857;
}

.settings-panels-container {
  overflow-y: auto;
  max-height: 65vh;
  padding-right: 0.4rem;
}
.settings-panel-header {
  margin-bottom: 1.25rem;
}
.settings-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.settings-panel-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Language Cards */
.language-selection-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .language-selection-cards {
    grid-template-columns: 1fr;
  }
}
.lang-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.lang-card:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}
.lang-card.active {
  border-color: var(--accent-emerald);
  background: #ecfdf5;
}
.lang-card-flag {
  font-size: 1.8rem;
  line-height: 1;
}
.lang-card-text {
  flex: 1;
}
.lang-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}
.lang-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.lang-radio-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  position: relative;
}
.lang-card.active .lang-radio-check {
  border-color: var(--accent-emerald);
  background: var(--accent-emerald);
}
.lang-card.active .lang-radio-check::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

/* Stats Grid */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.stat-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}
.stat-card-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.stat-card-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}
.stat-card-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ==============================================================================
   10. Toast Notification System
============================================================================== */
.toast-container {
  position: fixed;
  bottom: 110px;
  right: 24px;
  z-index: 10005;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}
@media (max-width: 600px) {
  .toast-container {
    bottom: 145px;
    right: 14px;
    left: 14px;
    align-items: flex-end;
  }
}
.toast {
  pointer-events: auto;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-dropdown);
  transform: translateX(100%);
  animation: slideInToast 0.25s forwards cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 360px;
  color: var(--text-primary);
}
@keyframes slideInToast {
  to { transform: translateX(0); }
}
.toast.success { border-color: var(--accent-emerald); color: var(--accent-emerald); }
.toast.error { border-color: var(--accent-rose); color: var(--accent-rose); }
.toast.info { border-color: var(--accent-blue); color: var(--accent-blue); }

/* ==============================================================================
   11. Dedicated Settings Page Dashboard Styles
============================================================================== */
.settings-page-body {
  background-color: #f8fafc;
}

.settings-banner-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.25rem 0 2rem;
}

.settings-breadcrumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.settings-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.settings-breadcrumb a {
  color: var(--text-secondary);
}
.settings-breadcrumb a:hover {
  color: #0f172a;
}
.breadcrumb-sep {
  color: var(--border-medium);
}
.breadcrumb-current {
  color: #0f172a;
  font-weight: 600;
}

.back-marketplace-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
}
.back-marketplace-link:hover {
  text-decoration: underline;
}

.settings-main-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}
.settings-main-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 750px;
}

.settings-dashboard-wrap {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.settings-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.settings-main {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Settings Sidebar */
.settings-sidebar {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 5.5rem;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.sidebar-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}
.sidebar-user-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
}
.sidebar-user-handle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.sidebar-user-badge {
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-full);
  padding: 0.1rem 0.5rem;
}

/* Sidebar Nav Items */
.settings-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 1.25rem 0;
}
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
}
.settings-nav-item svg {
  color: var(--text-muted);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}
.settings-nav-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.settings-nav-item:hover svg {
  color: #0f172a;
}
.settings-nav-item.active {
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
}
.settings-nav-item.active svg {
  color: #059669;
}
.nav-chip {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
}

.sidebar-help-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
}
.help-box-icon {
  color: #059669;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.help-box-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.2rem;
}
.help-box-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}
.help-box-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #059669;
}
.help-box-link:hover {
  text-decoration: underline;
}

/* Settings Content Panel */
.settings-content-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  min-height: 520px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.settings-card-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}
.settings-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
  letter-spacing: -0.3px;
}
.settings-card-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.settings-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-sublabel {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.settings-highlight-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}
.highlight-box-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.2rem;
}
.highlight-box-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.verification-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.settings-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 2rem 0;
}

.settings-action-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
}

/* Language Selection Grid */
.language-selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.language-card {
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  gap: 1rem;
  cursor: pointer;
  background: #ffffff;
  transition: all var(--transition-fast);
  position: relative;
}
.language-card:hover {
  border-color: #94a3b8;
  background: var(--bg-secondary);
}
.language-card.active {
  border-color: var(--accent-emerald);
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}
.language-card-radio {
  margin-top: 0.2rem;
}
.radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast);
}
.radio-circle.checked {
  border-color: var(--accent-emerald);
}
.radio-circle.checked::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--accent-emerald);
  border-radius: 50%;
}
.language-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.language-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.current-lang-pill {
  font-size: 0.68rem;
  font-weight: 700;
  background: #059669;
  color: #ffffff;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
}
.language-card-flag {
  font-size: 1.4rem;
  margin-left: auto;
  align-self: flex-start;
}

.settings-info-callout {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.callout-icon {
  color: #0284c7;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Deals Table in Settings */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.deals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.deals-table th {
  text-align: left;
  padding: 0.65rem 0.65rem;
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.deals-table td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.deals-table th:last-child,
.deals-table td:last-child {
  text-align: right;
  min-width: 190px;
  white-space: nowrap;
}
.deal-id-pill {
  font-family: monospace;
  font-weight: 700;
  background: #f1f5f9;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #0f172a;
}
.status-pill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.status-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.status-warning {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Deals Filter Bar & Tabs */
.deals-filter-btn {
  background: transparent;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}
.deals-filter-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}
.deals-filter-btn.active {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
  font-weight: 700;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Stats Grid in Settings */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.stat-card-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}
.stat-box-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.stat-box-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.stat-box-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

@media (max-width: 860px) {
  .settings-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .settings-layout > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .settings-sidebar {
    position: static;
    padding: 1rem;
    border-radius: var(--radius-lg);
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .sidebar-user-card {
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    min-width: 0;
    max-width: 100%;
  }
  .settings-nav-menu {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .settings-nav-menu::-webkit-scrollbar {
    display: none;
  }
  .settings-nav-item {
    flex-shrink: 0;
    padding: 0.55rem 0.95rem;
    font-size: 0.82rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    border: 1px solid var(--border-subtle);
  }
  .settings-nav-item.active {
    background: #ecfdf5;
    border-color: #a7f3d0;
  }
  .sidebar-help-box {
    display: none;
  }
  .settings-form-grid,
  .language-selection-grid {
    grid-template-columns: 1fr;
  }
  .settings-content-card {
    padding: 1.25rem;
  }
}


/* ==============================================================================
   7. Dedicated Product Details Page Layout & Elements
============================================================================== */
.product-page-body {
  background-color: #f8fafc;
}

.product-breadcrumb-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  margin-bottom: 1.75rem;
}

.product-breadcrumb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.product-breadcrumb-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.product-breadcrumb-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.product-breadcrumb-links a:hover {
  color: var(--accent-emerald);
}

.product-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f1f5f9;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.product-code-pill:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.product-mobile-back-btn {
  display: none;
}

.product-quick-stats-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.quick-stat-badge {
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.quick-stat-badge:hover {
  background: #fef3c7;
  border-color: #f59e0b;
}

.quick-stat-dot {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.quick-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Modern Trust Strip */
.product-trust-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0;
  margin-bottom: 0.95rem;
}

.product-trust-strip::-webkit-scrollbar {
  display: none;
}

.trust-pill {
  flex: 1 1 auto;
  min-width: fit-content;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.trust-pill:hover,
.trust-pill:active {
  background: #dcfce7;
  border-color: #86efac;
}

/* Mobile Tabs Bar base style (hidden by default on desktop) */
.product-mobile-tabs-bar {
  display: none;
}

.product-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr);
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 4rem;
}

/* Product Gallery Box (Refined, Spacious & Modern) */
.product-gallery-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-bottom: 2rem;
}

.product-hero-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.product-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.gallery-expand-btn {
  display: none !important;
}

/* Hero image previous/next navigation arrows */
.gallery-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  padding: 0;
  outline: none;
}

.gallery-nav-arrow:hover {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-50%) scale(1.06);
  color: #38bdf8;
}

.gallery-nav-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.gallery-prev-arrow {
  left: 14px;
}

.gallery-next-arrow {
  right: 14px;
}

@media (max-width: 768px) {
  .gallery-nav-arrow {
    width: 36px;
    height: 36px;
  }
  .gallery-prev-arrow {
    left: 8px;
  }
  .gallery-next-arrow {
    right: 8px;
  }
}

.gallery-overlay-bottom {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.gallery-overlay-bottom > * {
  pointer-events: auto;
}

/* Photo counter badge for the primary hero image */
.gallery-counter-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.gallery-thumbnails-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.gallery-thumb-btn {
  position: relative;
  flex-shrink: 0;
  width: 84px;
  height: 62px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #f1f5f9;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.gallery-thumb-btn:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.gallery-thumb-btn.active {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
  transform: scale(1.02);
}

.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  padding: 0.1rem 0;
}

/* Product Content Section Cards */
.product-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-bottom: 2rem;
}

.product-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid #f1f5f9;
}

.product-section-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.product-section-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f0f9ff;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-section-icon-badge.emerald {
  background: #ecfdf5;
  color: #059669;
}

.product-section-heading {
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.product-section-subheading {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  display: block;
  margin-top: 3px;
}

/* Futuristic Spec Matrix Grid */
.spec-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.spec-matrix-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  transition: all 0.2s ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.spec-matrix-tile:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.spec-matrix-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-matrix-content {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.spec-matrix-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.spec-matrix-val {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Humanized Seller Description Container */
.seller-desc-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
}

.seller-desc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.seller-desc-header svg {
  color: #059669;
}

.seller-desc-body {
  font-size: 0.98rem;
  line-height: 1.85;
  color: #334155;
}

.seller-desc-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed #e2e8f0;
}

.seller-link-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: #475569;
  font-weight: 600;
}

.spec-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.15rem;
  background: #ffffff;
  border: 1.5px solid #10b981;
  color: #047857;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.spec-live-btn:hover {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Escrow 3-Pillar Safeguard */
.escrow-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.escrow-pillar-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.escrow-pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.escrow-pillar-text h4 {
  margin: 0 0 0.35rem 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
}

.escrow-pillar-text p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #64748b;
}

.product-desc-text {
  font-size: 0.96rem;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 1.25rem;
}

.safety-check-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin-top: 1rem;
}

.safety-check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #065f46;
  font-weight: 600;
}

/* Q&A Section Styles */
.qa-form-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.qa-textarea {
  width: 100%;
  min-height: 85px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  resize: vertical;
  margin-bottom: 0.75rem;
  transition: border-color var(--transition-fast);
}

.qa-textarea:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.qa-thread-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qa-thread-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  background: #ffffff;
}

.qa-question-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.qa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.qa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qa-avatar-sm {
  width: 24px;
  height: 24px;
  font-size: 0.72rem;
}

.qa-q-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.5;
  word-break: break-word;
}

.qa-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.qa-answer-box {
  background: #f8fafc;
  border-left: 3px solid var(--accent-emerald);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.75rem 1rem;
  margin-left: 2.75rem;
}

.qa-seller-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.3rem;
}

.qa-ans-text {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
}

/* Reviews Breakdown */
.reviews-summary-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.reviews-score-block {
  text-align: center;
  min-width: 110px;
}

.reviews-big-score {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.reviews-big-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin: 0.3rem 0;
}

.reviews-bars-col {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.rating-bar-track {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: var(--radius-full);
}

.review-item-card {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

.review-item-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-author-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.review-author-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.review-author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.review-verified-tag {
  font-size: 0.72rem;
  color: #047857;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.review-item-comment {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #334155;
}

/* ==============================================================================
   Right Column / Purchase & Seller Desks (Spacious, Uncluttered & Humanized)
============================================================================== */
.product-sidebar-desk {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Card 1: Main Buy Desk */
.product-sticky-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.product-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.product-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-code-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.product-detail-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem;
}

/* Spacious Pill-Based Quick Stats */
.product-quick-stats-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.quick-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.quick-stat-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.stat-pill-val {
  font-weight: 700;
  color: #0f172a;
}

.stat-pill-sub {
  font-size: 0.74rem;
  color: #64748b;
}

.quick-stat-pill.stock-pill-in {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.quick-stat-pill.stock-pill-in .stat-pill-val {
  color: #047857;
}

.quick-stat-pill.stock-pill-out {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.quick-stat-pill.stock-pill-out .stat-pill-val {
  color: #b91c1c;
}

.stock-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}
.stock-pill-out .stock-status-dot {
  background: #ef4444;
}

/* Direct & Clean Product Sold Out Banner */
.product-soldout-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #991b1b;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem;
}
.product-soldout-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #dc2626;
}
.product-soldout-banner .soldout-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.product-soldout-banner .soldout-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #991b1b;
  letter-spacing: -0.01em;
}
.product-soldout-banner .soldout-desc {
  font-size: 0.78rem;
  color: #b91c1c;
  line-height: 1.35;
}

/* Spacious, Uncluttered Price Section */
.product-price-section {
  padding: 1.35rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.price-header-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.price-display-row {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.price-val-big {
  font-size: 2.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-symbol {
  font-size: 1.65rem;
  font-weight: 700;
  color: #059669;
  margin-right: 3px;
}

.price-strike-sub {
  font-size: 1.1rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 2px;
}

.price-save-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

/* Spacious Dual Actions */
.dual-action-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.65rem;
}

.btn-buy-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  font-size: 0.98rem;
  font-weight: 700;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
  transition: all 0.2s ease;
}

.btn-buy-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.btn-bid-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  font-size: 0.96rem;
  font-weight: 700;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-bid-hero:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.btn-buy-hero.is-soldout,
.btn-buy-hero[disabled] {
  background: #94a3b8 !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.9 !important;
}

.btn-bid-hero.is-soldout,
.btn-bid-hero[disabled] {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  border-color: #cbd5e1 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.7 !important;
}

.btn-buy-mobile.is-soldout,
.btn-buy-mobile[disabled] {
  background: #94a3b8 !important;
  border-color: #94a3b8 !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
  opacity: 0.9 !important;
}

.btn-bid-mobile.is-soldout,
.btn-bid-mobile[disabled] {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}

/* Escrow Checkout Strip (Clean, Seamless, No Heavy Nested Borders) */
.acceptable-payment-methods-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
}

.apm-header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.apm-header-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
}

.apm-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

.apm-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.apm-chip,
.apm-bkash,
.apm-nagad,
.apm-rocket {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
  overflow: hidden;
}

.apm-chip:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.apm-brand-logo {
  max-height: 25px;
  max-width: 82px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.apm-note-clean {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: #059669;
  font-weight: 600;
  line-height: 1.4;
}

/* Card 2: Dedicated Spacious Verified Seller Desk */
.seller-credibility-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.65rem 1.75rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.seller-card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.seller-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.seller-online-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.seller-online-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.seller-profile-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.seller-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.seller-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.seller-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-profile-details {
  min-width: 0;
  flex: 1;
}

.seller-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.seller-username {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.seller-badge-verified {
  font-size: 0.7rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.seller-badge-unverified {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.seller-card-title.seller-verified-title {
  color: #047857 !important;
}

.seller-card-title.seller-unverified-title {
  color: #475569 !important;
}

.seller-rating-line {
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.seller-stars {
  color: #f59e0b;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.seller-deals-count {
  color: #64748b;
}

.seller-metrics-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.95rem 1.15rem;
  margin-bottom: 1.35rem;
}

.seller-metric-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.seller-metric-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.seller-metric-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
}

.seller-metric-val.emerald {
  color: #059669;
}

/* Full-Width Prominent Message Seller CTA */
.btn-message-seller-full {
  width: 100%;
  height: 48px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #15803d;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(21, 128, 61, 0.08);
}

.btn-message-seller-full:hover {
  background: #dcfce7;
  border-color: #4ade80;
  color: #166534;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.15);
}

.product-report-footer {
  padding-top: 1.15rem;
  margin-top: 1.15rem;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

.escrow-safe-note {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.btn-report-link {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  transition: color 0.15s ease;
}

.btn-report-link:hover {
  color: #ef4444;
}

/* Minimalist Safety Guarantee */
.vault-reassurance-strip {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Bid Modal Styles */
.bid-modal-card {
  max-width: 520px;
}

.bid-asset-preview {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.bid-thumb-mini {
  width: 54px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.discount-pills-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.discount-pill {
  flex: 1;
  min-width: 90px;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border-medium);
  background: #ffffff;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.discount-pill:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.discount-pill.active {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.discount-pill-pct {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.discount-pill-amt {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.bid-input-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.bid-currency-symbol {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
}

.bid-price-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.2rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: #ffffff;
  outline: none;
  transition: border-color var(--transition-fast);
}

.bid-price-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.bid-savings-summary {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

/* Related Products Grid */
.related-products-section {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ==============================================================================
   8. Super Responsive Layouts: Mobile, Tablet / iPad & Large Screens
============================================================================== */

/* Hamburger Menu Toggle (Visible on Tablets & Mobile) */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: #0f172a;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.mobile-nav-toggle:hover {
  background: var(--bg-secondary);
  border-color: #94a3b8;
}

@media (max-width: 1024px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }
}

/* Mobile Navigation Drawer & Backdrop */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 24999 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 86vw;
  background: #ffffff;
  z-index: 25000 !important;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.16);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
}
.mobile-nav-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 861px) {
  .mobile-nav-drawer,
  .mobile-drawer-overlay {
    display: none !important;
  }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.drawer-close-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.drawer-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.drawer-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

/* User Card in Mobile Drawer */
.drawer-user-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.drawer-user-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
  flex-shrink: 0;
  overflow: hidden;
}
.drawer-user-meta {
  flex: 1;
  min-width: 0;
}
.drawer-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drawer-user-handle {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.drawer-wallet-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.drawer-wallet-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #047857;
}

/* Drawer Links */
.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
}
.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.drawer-nav-item svg {
  color: #64748b;
  flex-shrink: 0;
}
.drawer-nav-item:hover,
.drawer-nav-item.active {
  background: #f1f5f9;
  color: #059669;
}
.drawer-nav-item:hover svg,
.drawer-nav-item.active svg {
  color: #059669;
}

.drawer-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.5rem 0;
}

.drawer-cta-wrap {
  margin-top: auto;
  padding-top: 1rem;
}

/* Language Switcher in Mobile Drawer */
.drawer-lang-switcher {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-full, 9999px);
  padding: 3px;
  gap: 3px;
  margin: 0.25rem 0 0.5rem 0;
}
.drawer-lang-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.84rem;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast, 0.2s ease);
}
.drawer-lang-btn.active {
  background: #ffffff;
  color: #059669;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.drawer-lang-btn:hover:not(.active) {
  color: #1e293b;
}

/* Nav Language Toggle Button (Desktop & Mobile) */
.nav-lang-btn {
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-full, 9999px);
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  color: var(--text-primary, #0f172a);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast, 0.2s ease);
}
.nav-lang-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #059669;
}

/* Merchant Highlight Item in Mobile Drawer */
.drawer-nav-item.drawer-nav-merchant {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #047857 !important;
  font-weight: 700 !important;
}
.drawer-nav-item.drawer-nav-merchant svg {
  color: #059669 !important;
}
.drawer-nav-item.drawer-nav-merchant:hover {
  background: #dcfce7 !important;
  border-color: #86efac !important;
}

/* App-Style Bottom Navigation Bar for Mobile Phones (<= 768px) */
.mobile-app-bottom-bar {
  display: none;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 3.75rem !important;
  background: #ffffff !important;
  border-top: 1px solid var(--border-medium) !important;
  z-index: 99990 !important;
  align-items: center !important;
  justify-content: space-around !important;
  padding: 0 0.5rem !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08) !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (max-width: 768px) {
  .mobile-app-bottom-bar {
    display: flex !important;
  }
  body.has-bottom-bar {
    padding-bottom: calc(4.8rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (min-width: 769px) {
  .mobile-app-bottom-bar {
    display: none !important;
  }
}

.bottom-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  min-width: 52px;
}
.bottom-bar-item svg {
  stroke-width: 2.2;
}
.bottom-bar-item.active,
.bottom-bar-item:hover {
  color: var(--site-accent, #ff7024);
}
.bottom-bar-sell-btn {
  background: var(--site-accent, #ff7024);
  color: #ffffff !important;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--site-accent-dark, #e05810);
}
.bottom-bar-sell-btn svg {
  color: #ffffff;
}

/* ==============================================================================
   Dedicated Product Page Sticky Bar & Logical Reordering for Mobile & Tablet
============================================================================== */
.mobile-sticky-product-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1.5px solid #e2e8f0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px)) 0.85rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  z-index: 998;
}

@media (max-width: 768px) {
  .mobile-sticky-product-bar {
    display: flex;
  }
  body.has-product-bar {
    padding-bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

.sticky-bar-price-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-shrink: 0;
}
.sticky-bar-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sticky-bar-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sticky-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex-shrink: 0;
}
.btn-bid-mobile {
  padding: 0.55rem 0.75rem;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  color: #b45309;
  cursor: pointer;
  white-space: nowrap;
}
.btn-buy-mobile {
  padding: 0.55rem 1rem;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  background: #059669;
  border: 1px solid #059669;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35);
}

/* Logical Order for Product Detail Page on Tablet and Mobile (<= 992px) */
@media (max-width: 992px) {
  .product-main-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .product-main-column,
  .product-sidebar-column {
    display: contents;
  }
  
  /* Strict logical hierarchy on tablet & mobile */
  #product-gallery-container {
    order: 1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  #product-sidebar-container {
    order: 2;
    margin-bottom: 0.25rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  #product-specs-container {
    order: 3;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  #product-desc-container {
    order: 4;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  #product-qa-container {
    order: 5;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  #product-reviews-container {
    order: 6;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .product-gallery-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .gallery-thumbnails-strip {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .product-sidebar-desk {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .product-sticky-card {
    position: static;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .seller-credibility-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .product-hero-wrap {
    height: clamp(250px, 46vw, 360px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Dedicated Mobile Product Experience (<= 768px) */
@media (max-width: 768px) {
  /* Give room to the product: hide top generic banner on mobile product page */
  body.product-page-body .top-notice-banner {
    display: none !important;
  }

  /* Compact 1-line breadcrumbs header */
  .product-breadcrumb-bar {
    padding: 0.45rem 0 !important;
    margin-bottom: 0.65rem !important;
  }
  .product-breadcrumb-inner {
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
  }
  .product-breadcrumb-links {
    display: none !important;
  }
  .product-mobile-back-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #059669;
    text-decoration: none;
    background: #ecfdf5;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #a7f3d0;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .product-breadcrumb-right .back-marketplace-link {
    display: none !important;
  }
  .product-breadcrumb-right {
    margin-left: auto;
  }

  /* Hide duplicate in-card action buttons on mobile (sticky bottom bar handles actions) */
  .product-sticky-card .dual-action-row.in-card-actions {
    display: none !important;
  }
  .desktop-only-strip {
    display: none !important;
  }

  /* Tabs bar removed: both PC and mobile show all sections sequentially */
  .product-mobile-tabs-bar,
  #product-mobile-tabs-bar {
    display: none !important;
  }
  .mobile-tab-hidden {
    display: block !important;
  }

  /* 1 product per row for related products on mobile screens */
  .related-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    overflow-x: visible !important;
  }
  .related-grid .listing-card {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  /* Card padding and smooth tab transition on mobile */
  .product-section-card {
    padding: 1.15rem 1rem !important;
    border-radius: 14px !important;
    margin-bottom: 1rem !important;
    animation: kgFadeIn 0.25s ease-out;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  @keyframes kgFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Responsive Spec Matrix Grid for Mobile */
  .spec-matrix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .spec-matrix-tile {
    padding: 0.55rem 0.65rem !important;
    gap: 0.5rem !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .spec-matrix-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }
  .spec-matrix-content {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }
  .spec-matrix-label {
    font-size: 0.64rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }
  .spec-matrix-val {
    font-size: 0.84rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  @media (max-width: 360px) {
    .spec-matrix-grid {
      grid-template-columns: 1fr !important;
      gap: 0.45rem !important;
    }
  }

  /* Responsive 3-Pillar Escrow Safeguard for Mobile */
  .escrow-pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .escrow-pillar-card {
    padding: 0.95rem 1rem !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  .escrow-pillar-icon {
    width: 34px !important;
    height: 34px !important;
  }

  /* Seller Description Link Row on Mobile */
  .seller-desc-link-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.6rem !important;
  }
  .spec-live-btn {
    justify-content: center !important;
    width: 100% !important;
  }
}

/* Phone screens adjustments (<= 640px) */
@media (max-width: 640px) {
  .product-detail-title {
    font-size: clamp(1.15rem, 4.6vw, 1.35rem) !important;
    line-height: 1.35 !important;
    margin-bottom: 0.65rem !important;
  }
  .price-val-big {
    font-size: 1.7rem !important;
  }
  .product-hero-wrap {
    height: clamp(220px, 58vw, 290px) !important;
  }
  
  /* Seller Description Card */
  .seller-desc-container {
    padding: 1rem 0.95rem !important;
  }
  .seller-desc-body {
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
  }

  /* Compact Escrow Payment Chips */
  .apm-pills-row {
    gap: 0.4rem !important;
  }
  .apm-chip {
    padding: 0.35rem 0.35rem !important;
    height: 38px !important;
  }
  .apm-brand-logo {
    max-height: 20px !important;
    max-width: 68px !important;
  }

  /* Seller Credibility Card on Small Mobile */
  .seller-credibility-card {
    padding: 1.15rem 1rem !important;
    border-radius: 16px !important;
  }
  .seller-metrics-matrix {
    padding: 0.75rem 0.85rem !important;
    gap: 0.5rem !important;
  }
  .seller-metric-label {
    font-size: 0.68rem !important;
  }
  .seller-metric-val {
    font-size: 0.88rem !important;
  }
  .btn-message-seller-full {
    height: 44px !important;
    font-size: 0.9rem !important;
  }
  .quick-stat-pill {
    padding: 0.28rem 0.55rem !important;
    font-size: 0.74rem !important;
  }

  /* Universal modal styling for mobile screens */
  .modal-overlay {
    padding: 0.75rem;
    align-items: center;
  }
  .modal-container {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-lg);
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.25rem 1rem !important;
  }

  /* 1 product per row for related products on mobile view */
  .related-products-section {
    padding: 1.75rem 0 2rem 0 !important;
  }
  .related-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
  }
  .related-grid::-webkit-scrollbar {
    display: none;
  }
  .related-grid .listing-card {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
}

/* ==============================================================================
   Merchant Payout Component Styles
============================================================================== */
.status-alert-box {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
}
.status-alert-box.pending {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.status-alert-box.verified {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.method-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.15s ease;
}
.method-block:hover {
  border-color: #cbd5e1;
}
.method-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.method-brand-pill {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.pill-bkash {
  background: #fdf2f8;
  color: #d12053;
  border: 1px solid #fbcfe8;
}
.pill-nagad {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #ffedd5;
}

/* Skeleton Loading Shimmer for Marketplace Cards */
.skeleton-card {
  pointer-events: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.skeleton-pulse {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: kg-shimmer 1.5s infinite ease-in-out;
}

@keyframes kg-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==========================================================================
   Order Tracker Stepper & Modal Components
   ========================================================================== */
.order-tracker-modal {
  max-width: 680px;
  width: 95%;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  position: relative;
}
.order-tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}
.order-tracker-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
}
.order-tracker-thumb {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: #e2e8f0;
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-weight: 700;
  font-size: 1.25rem;
  border: 1px solid #cbd5e1;
}
.order-tracker-stepper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-left: 0.25rem;
  margin-bottom: 1.5rem;
}
.tracker-step-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}
.tracker-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 34px;
  left: 16px;
  width: 2px;
  height: calc(100% - 8px);
  background: #e2e8f0;
  z-index: 1;
}
.tracker-step-item.completed:not(:last-child)::after {
  background: #10b981;
}
.tracker-step-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  z-index: 2;
  background: #f1f5f9;
  color: #94a3b8;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.tracker-step-item.completed .tracker-step-badge {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}
.tracker-step-item.active .tracker-step-badge {
  background: #ecfdf5;
  color: #059669;
  border-color: #059669;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.18);
  animation: pulse 2s infinite;
}
.tracker-step-item.disputed .tracker-step-badge {
  background: #fef2f2;
  color: #dc2626;
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18);
}
.tracker-step-item.cancelled .tracker-step-badge {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}
.tracker-step-body {
  flex: 1;
  min-width: 0;
}
.tracker-step-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.tracker-step-desc {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.2rem;
  line-height: 1.4;
}
.tracker-status-box {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.tracker-status-box.inspection {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.tracker-status-box.dispute {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.tracker-status-box.cancelled {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}
.tracker-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
}
.tracker-meta-item label {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 2px;
}
.tracker-meta-item span {
  font-weight: 700;
  color: #0f172a;
}
.tracker-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}





/* ==========================================================================
   Browse by Category - 6 Platform Brand Cards (Matches User Image)
   ========================================================================== */
.browse-category-section {
  margin: 1.5rem 0 1.25rem !important;
}
.marketplace-search-section {
  margin: 0 0 1.35rem 0;
  position: relative;
  z-index: 10001;
}
.browse-category-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
}
.category-brand-card.category-card,
.category-brand-card {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  height: 136px !important;
  min-height: 136px !important;
  padding: 14px 12px 12px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  text-align: left !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.2s ease !important;
  user-select: none !important;
  border: 2px solid transparent !important;
}
.category-brand-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 24px -2px rgba(0, 0, 0, 0.18) !important;
}
.category-brand-card.active {
  border-color: #ffffff !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(255, 255, 255, 0.7) !important;
}
.brand-card-watermark {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  width: 80px !important;
  height: 80px !important;
  opacity: 0.16 !important;
  pointer-events: none !important;
}
.brand-card-watermark svg {
  width: 100% !important;
  height: 100% !important;
  fill: #ffffff !important;
}
.brand-card-top {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
}
.brand-card-icon-pill {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important;
  flex-shrink: 0 !important;
}
.brand-card-bottom {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  text-align: left !important;
  width: 100% !important;
  padding-right: 32px !important;
  box-sizing: border-box !important;
}
.brand-card-title {
  color: #ffffff !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
  width: 100% !important;
}
.brand-card-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-align: left !important;
  word-break: break-word !important;
  width: 100% !important;
}
.brand-card-arrow-btn {
  position: absolute !important;
  right: 10px !important;
  bottom: 10px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.18s ease, background 0.18s ease !important;
  z-index: 3 !important;
}
.category-brand-card:hover .brand-card-arrow-btn {
  transform: translateX(2px) !important;
  background: #f8fafc !important;
}

@media (max-width: 1200px) {
  .browse-category-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
  }
}
@media (max-width: 900px) {
  .browse-category-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
}
@media (max-width: 640px) {
  .browse-category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .category-brand-card:last-child:nth-child(odd) {
    grid-column: span 2 !important;
  }
  .category-brand-card.category-card,
  .category-brand-card {
    height: 124px !important;
    min-height: 124px !important;
    padding: 10px 8px 8px 10px !important;
    border-radius: 14px !important;
  }
  .brand-card-icon-pill {
    width: 30px !important;
    height: 30px !important;
  }
  .brand-card-icon-pill svg {
    width: 16px !important;
    height: 16px !important;
  }
  .brand-card-title {
    font-size: 0.92rem !important;
  }
  .brand-card-subtitle {
    font-size: 0.64rem !important;
  }
  .brand-card-arrow-btn {
    width: 22px !important;
    height: 22px !important;
    right: 8px !important;
    bottom: 8px !important;
  }
}
