/* marketplace-enhancements.css - Enhanced marketplace styles */

/* Market Grid Layout */
.market-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .market-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    order: -1;
  }
}

/* Filters Sidebar */
.filters {
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(2,6,23,0.08);
}

.filters-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.results-count {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.filter-group {
  margin-bottom: 18px;
}

.filter-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.filter-group select,
.filter-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(2,6,23,0.1);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.filter-group select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,100,210,0.1);
}

/* Price Range Inputs */
.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-range-inputs input {
  flex: 1;
  padding: 10px;
  border: 1px solid rgba(2,6,23,0.1);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  width: 100%;
}

.price-range-inputs input:focus {
  outline: none;
  border-color: var(--accent);
}

.price-separator {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Checkbox Filters */
.checkbox-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 8px 12px;
  background: var(--glass);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  background: rgba(0,100,210,0.08);
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Filter Actions */
.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(2,6,23,0.08);
}

/* Active Filters Tags */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0,100,210,0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.filter-tag .remove-tag {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.filter-tag .remove-tag:hover {
  opacity: 1;
}

/* List Actions Bar */
.list-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.list-info {
  font-size: 0.9rem;
  color: var(--muted);
}

.list-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sort, .per-page {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.sort select, .per-page select {
  padding: 8px 12px;
  border: 1px solid rgba(2,6,23,0.1);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-toggle button {
  padding: 8px 12px;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(2,6,23,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* No Results State */
.no-results-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--glass);
  border-radius: 12px;
}

.no-results-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.no-results-state h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.no-results-state p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* Auctions Grid */
.auctions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.auctions-grid.list-view {
  grid-template-columns: 1fr;
}

/* Auction Card */
.auction-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.auction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.auction-card .thumb {
  height: 180px;
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.auction-card .thumb-content {
  font-size: 4rem;
}

.auction-card .live-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: linear-gradient(90deg, #ff4d4f, #ff938a);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  animation: pulse-live 2s ease-in-out infinite;
}

.auction-card .upcoming-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.auction-card .body {
  padding: 16px;
}

.auction-card .title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.auction-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.auction-card .seller {
  color: var(--muted);
  text-decoration: none;
}

.auction-card .seller.seller-link {
  cursor: pointer;
  transition: color 0.2s ease;
}

.auction-card .seller.seller-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.auction-card .seller .badge {
  color: #22c55e;
  margin-left: 4px;
}

.auction-card .viewers {
  color: var(--muted);
}

.auction-card .viewers[data-status="live"] {
  color: #ff4d4f;
}

.auction-card .price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.auction-card .current-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.auction-card .reserve-info {
  font-size: 0.8rem;
  color: var(--muted);
}

.auction-card .card-actions {
  display: flex;
  gap: 10px;
}

.auction-card .card-actions button {
  flex: 1;
}

.auction-card .follow-btn.following {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: #ef4444;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  gap: 6px;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(2,6,23,0.1);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.page-btn.ellipsis {
  border: none;
  background: transparent;
  cursor: default;
}

.page-indicator {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 8px;
}

#prev-page:disabled,
#next-page:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  background: linear-gradient(135deg, var(--card), rgba(0,100,210,0.03));
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  max-width: 300px;
  width: 100%;
}

.live-badge {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(90deg, #ff4d4f, #ff938a);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  animation: pulse-live 2s ease-in-out infinite;
}

.live-thumb {
  height: 120px;
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin-bottom: 16px;
}

.live-meta .title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.live-meta .sub {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.live-stats {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Featured Section */
.featured-section {
  margin-bottom: 24px;
}

.featured-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.featured-card {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.featured-card:hover {
  transform: translateX(4px);
  box-shadow: var(--card-shadow);
}

.featured-icon {
  font-size: 2rem;
}

.featured-label {
  font-weight: 700;
  margin-bottom: 4px;
}

/* Info Section */
.info-section {
  padding: 30px;
  margin-top: 24px;
}

.info-section h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.info-card {
  text-align: center;
}

.info-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.info-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 640px) {
  .list-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .list-controls {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .auctions-grid {
    grid-template-columns: 1fr;
  }
  
  .pagination {
    flex-direction: column;
    gap: 16px;
  }
  
  .page-numbers {
    order: -1;
  }
}

/* ========== ITEM DETAIL MODAL ========== */
.item-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.item-modal-content {
  background: var(--card);
  border-radius: 20px;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.item-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--glass);
  border-radius: 12px;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  z-index: 10;
  transition: all 0.2s ease;
}

.item-modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.item-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 900px) {
  .item-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* Image Section */
.item-modal-images {
  padding: 32px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 20px 0 0 20px;
}

[data-theme="dark"] .item-modal-images {
  background: linear-gradient(135deg, #1a1f2e, #0d1117);
}

.main-image {
  height: 350px;
  background: var(--card);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.main-image .image-placeholder {
  font-size: 8rem;
}

.image-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 16px;
  background: linear-gradient(90deg, #ff4d4f, #ff938a);
  color: white;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}

.image-badge.upcoming {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.image-badge.completed {
  background: linear-gradient(90deg, #6b7280, #9ca3af);
}

.image-thumbnails {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.image-thumbnails .thumb {
  width: 70px;
  height: 70px;
  background: var(--card);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.image-thumbnails .thumb:hover {
  border-color: var(--accent);
}

.image-thumbnails .thumb.active {
  border-color: var(--accent);
  background: rgba(0,100,210,0.1);
}

/* Details Section */
.item-modal-details {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.item-header {
  margin-bottom: 20px;
}

.item-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0,100,210,0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.item-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}

/* Price Block */
.item-price-block {
  background: var(--glass);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

.current-bid-display {
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(2,6,23,0.08);
}

.current-bid-display .label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.current-bid-display .value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
}

.bid-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bid-info-row .info-item {
  text-align: center;
}

.bid-info-row .label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.bid-info-row .value {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Timer Block */
.auction-timer-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  margin-bottom: 20px;
}

.timer-icon {
  font-size: 1.6rem;
}

.timer-info {
  flex: 1;
}

.timer-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.timer-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ef4444;
}

.viewers-count {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Action Buttons */
.item-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.item-actions .btn.large {
  flex: 2;
  padding: 16px;
  font-size: 1.1rem;
}

.item-actions .btn.outline {
  flex: 1;
}

/* Tabs */
.item-tabs {
  display: flex;
  border-bottom: 1px solid rgba(2,6,23,0.1);
  margin-bottom: 20px;
  gap: 0;
}

.item-tab {
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.item-tab:hover {
  color: var(--text);
}

.item-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Tab Content */
.item-tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
}

.item-tab-content.active {
  display: block;
}

/* Description Tab */
#tab-description p {
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--muted);
}

.item-specs {
  background: var(--glass);
  border-radius: 10px;
  padding: 16px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(2,6,23,0.06);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.spec-value {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Seller Tab */
.seller-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--glass);
  border-radius: 12px;
  margin-bottom: 16px;
}

.seller-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #4b7bd8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
}

.seller-info {
  flex: 1;
}

.seller-name {
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.seller-name .verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  font-size: 11px;
}

.seller-rating {
  font-size: 0.9rem;
  color: var(--muted);
}

.seller-stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.seller-stats-mini .mini-stat {
  text-align: center;
  padding: 14px;
  background: var(--glass);
  border-radius: 10px;
}

.seller-stats-mini .value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.seller-stats-mini .label {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Q&A Tab */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.qa-item {
  padding: 16px;
  background: var(--glass);
  border-radius: 10px;
}

.question, .answer {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.question:last-child, .answer:last-child {
  margin-bottom: 0;
}

.qa-label {
  font-weight: 700;
  margin-right: 6px;
}

.question .qa-label {
  color: var(--accent);
}

.answer .qa-label {
  color: #22c55e;
}

.ask-question {
  display: flex;
  gap: 12px;
}

.ask-question input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(2,6,23,0.1);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

.ask-question input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Shipping Tab */
.shipping-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shipping-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--glass);
  border-radius: 10px;
}

.ship-icon {
  font-size: 1.4rem;
}

.ship-details {
  flex: 1;
}

.ship-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.ship-value {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Modal Responsive */
@media (max-width: 900px) {
  .item-modal-images {
    border-radius: 20px 20px 0 0;
    padding: 24px;
  }
  
  .main-image {
    height: 280px;
  }
  
  .item-modal-details {
    padding: 24px;
  }
  
  .seller-stats-mini {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .item-modal-content {
    border-radius: 16px;
  }
  
  .main-image {
    height: 220px;
  }
  
  .main-image .image-placeholder {
    font-size: 5rem;
  }
  
  .image-thumbnails .thumb {
    width: 55px;
    height: 55px;
  }
  
  .current-bid-display .value {
    font-size: 2rem;
  }
  
  .item-actions {
    flex-direction: column;
  }
  
  .item-actions .btn {
    width: 100%;
  }
  
  .bid-info-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================
   FEATURED AUCTIONS CAROUSEL
   ============================================= */
.featured-carousel-section {
  margin: 32px 0;
  padding: 28px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.carousel-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(2,6,23,0.1);
  border-radius: 10px;
  background: var(--glass);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.carousel-container {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.carousel-item {
  flex: 0 0 280px;
  background: var(--glass);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(2,6,23,0.06);
  transition: all 0.3s ease;
}

.carousel-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-color: var(--accent);
}

.carousel-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  z-index: 2;
}

.carousel-badge.live {
  background: linear-gradient(90deg, #ff4d4f, #ff938a);
  color: white;
}

.carousel-badge.ending {
  background: #f59e0b;
  color: white;
}

.carousel-badge.upcoming {
  background: #3b82f6;
  color: white;
}

.carousel-badge.hot {
  background: linear-gradient(90deg, #f97316, #fb923c);
  color: white;
}

.carousel-thumb {
  height: 140px;
  background: linear-gradient(135deg, #f4f7fb, #eef6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}

[data-theme="dark"] .carousel-thumb {
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.carousel-content {
  padding: 16px;
}

.carousel-content h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.carousel-seller {
  margin: 0 0 12px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.verified-mini {
  color: #22c55e;
  font-size: 0.8rem;
}

.carousel-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.carousel-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}

.carousel-viewers {
  font-size: 0.85rem;
  color: var(--muted);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(2,6,23,0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 5px;
}

/* =============================================
   SELLER SUCCESS STORIES
   ============================================= */
.success-stories-section {
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(0, 100, 210, 0.04) 0%, rgba(0, 0, 0, 0) 100%);
  margin-top: 40px;
}

.section-header-centered {
  text-align: center;
  margin-bottom: 40px;
}

.section-header-centered h2 {
  margin: 0 0 12px 0;
  font-size: 2rem;
  font-weight: 800;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.story-card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(2,6,23,0.06);
  transition: all 0.3s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.story-avatar {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #4b7bd8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.story-content {
  flex: 1;
}

.story-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.story-header h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.verified-badge-small {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pending-badge-small {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.story-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px 0;
  font-style: italic;
}

.story-stats {
  display: flex;
  gap: 20px;
}

.story-stat {
  display: flex;
  flex-direction: column;
}

.story-stat .stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.story-stat .stat-label {
  font-size: 0.75rem;
  color: var(--muted);
}

/* CTA Section */
.become-seller-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #4b7bd8 100%);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  color: white;
}

.cta-content h3 {
  margin: 0 0 12px 0;
  font-size: 1.8rem;
  font-weight: 800;
}

.cta-content p {
  margin: 0 0 24px 0;
  opacity: 0.9;
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 14px;
}

.cta-buttons .btn.primary {
  background: white;
  color: var(--accent);
}

.cta-buttons .btn.primary:hover {
  background: rgba(255,255,255,0.9);
}

.cta-buttons .btn.outline {
  border-color: white;
  color: white;
}

.cta-buttons .btn.outline:hover {
  background: rgba(255,255,255,0.15);
}

.btn.large {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.cta-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  font-weight: 500;
}

.feature-icon {
  font-size: 1.3rem;
}

@media (max-width: 900px) {
  .become-seller-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .cta-features {
    justify-items: center;
  }
}

/* =============================================
   ENHANCED FOOTER
   ============================================= */
.site-footer-enhanced {
  background: var(--surface);
  border-top: 1px solid rgba(2,6,23,0.08);
  padding: 50px 0 0 0;
  margin-top: 0;
}

[data-theme="dark"] .site-footer-enhanced {
  background: #0d1117;
  border-top-color: rgba(255,255,255,0.08);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo .brand-logo {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 10px;
}

.footer-logo .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.footer-tagline {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(2,6,23,0.08);
}

.social-link:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-column h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(2,6,23,0.08);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-legal-links {
  display: flex;
  gap: 16px;
}

.footer-legal-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--accent);
}

.footer-badges {
  display: flex;
  gap: 14px;
}

.footer-badge {
  padding: 8px 14px;
  background: var(--glass);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid rgba(2,6,23,0.06);
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-brand {
    max-width: 100%;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
  }
}

@media (max-width: 500px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-badges {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ========== DISCOVERY FEATURES ========== */

/* Discovery Sections */
#trending-section,
#recommended-section,
#tags-section {
  margin-bottom: 48px;
}

/* Section Header Row */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header-row h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Compact Grid for Discovery Sections */
.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* Compact Auction Card */
.compact-auction-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  background: var(--card);
  border: 1px solid rgba(2,6,23,0.08);
}

.compact-auction-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--accent);
}

.compact-thumb {
  height: 120px;
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.compact-icon {
  font-size: 3rem;
}

.compact-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  background: linear-gradient(90deg, #ff4d4f, #ff938a);
  color: white;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  animation: pulse-live 2s ease-in-out infinite;
}

.compact-upcoming-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  color: white;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
}

.compact-body {
  padding: 12px;
}

.compact-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-meta {
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.compact-seller {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.compact-seller:hover {
  color: var(--accent);
  text-decoration: underline;
}

.compact-seller .badge {
  color: #22c55e;
  margin-left: 4px;
  font-size: 0.75rem;
}

.compact-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}

@media (max-width: 768px) {
  .compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  
  .compact-thumb {
    height: 100px;
  }
  
  .compact-icon {
    font-size: 2.5rem;
  }
  
  .compact-body {
    padding: 10px;
  }
  
  .compact-title {
    font-size: 0.9rem;
  }
  
  .compact-price {
    font-size: 1rem;
  }
  
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .section-header-row h3 {
    font-size: 1.3rem;
  }
}

/* Tags Container */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--glass);
  border: 1px solid rgba(2,6,23,0.08);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tag-chip:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tag-name {
  font-weight: 500;
}

.tag-count {
  background: rgba(2,6,23,0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tag-chip:hover .tag-count {
  background: rgba(255,255,255,0.2);
}

/* Auction Tags on Cards */
.auction-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
  padding-top: 12px;
  border-top: 1px solid rgba(2,6,23,0.08);
}

.auction-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--glass);
  border: 1px solid rgba(2,6,23,0.08);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.auction-tag:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.auction-tag-more {
  display: inline-block;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

