/* Listing Cards, Modals, Detail Views, Sliders, Lightbox, Pagination */

#ativ-container .listing-card {
      background: rgba(255, 255, 255, 0.98);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.3);
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      backdrop-filter: blur(10px);
      position: relative;
    }

    .listing-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    }

    .listing-image {
      width: 100%;
      height: 220px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 64px;
      background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
      overflow: hidden;
      position: relative;
    }

    .listing-image img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
    }

    .listing-content {
      padding: 20px;
    }

    .listing-title {
      font-size: 16px;
      font-weight: 600;
      color: #1a1a1a;
      margin: 0 0 12px 0;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      line-height: 1.5;
      max-height: 4.5em;
      word-wrap: break-word;
      word-break: break-word;
      min-height: 3em;
    }

    .listing-brand-model {
      font-size: 13px;
      color: #666;
      margin: 0 0 8px 0;
      font-weight: 700;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .listing-callsign {
      font-size: 14px;
      color: #667eea;
      font-weight: 600;
      margin: 0 0 8px 0;
    }

    .listing-price {
      font-size: 24px;
      font-weight: 700;
      color: #2d3748;
      margin: 0;
    }

    /* Test Mail Result Styles */
    .test-mail-result {
      margin-top: 12px;
      padding: 12px 16px;
      border-radius: 8px;
      display: none;
      font-size: 14px;
      line-height: 1.6;
      animation: slideDown 0.3s ease;
    }

    .test-mail-result.success {
      background-color: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
      display: block;
    }

    .test-mail-result.error {
      background-color: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
      display: block;
    }

    .test-mail-result.loading {
      background-color: #d1ecf1;
      color: #0c5460;
      border: 1px solid #bee5eb;
      display: block;
    }

    /* Loading Overlay for Modal Operations */
    .modal-loading-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      backdrop-filter: blur(3px);
      opacity: 0;
      animation: fadeIn 0.2s ease forwards;
    }

    .modal-loading-content {
      background: white;
      padding: 30px 40px;
      border-radius: 12px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      min-width: 250px;
    }

    .modal-loading-spinner {
      width: 48px;
      height: 48px;
      border: 4px solid #f0f0f0;
      border-top: 4px solid #667eea;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    .modal-loading-text {
      font-size: 16px;
      font-weight: 600;
      color: #2d3748;
      text-align: center;
      line-height: 1.4;
    }

/* Detail Panel Global Scope (added to body, not inside #ativ-container) */
/* Note: fadeIn, spin, slideDown keyframes are defined in base.css */
.detail-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.7) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
  animation: fadeIn 0.3s ease !important;
  padding: 20px !important;
}

.detail-modal-content {
  background: white !important;
  border-radius: 20px !important;
  max-width: 1200px !important;
  width: 100% !important;
  max-height: 90vh !important;
  overflow: hidden !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  animation: slideUp 0.3s ease !important;
  display: grid !important;
  grid-template-columns: 380px 1fr !important;
  gap: 0 !important;
}

@media (max-width: 1000px) {
  .detail-modal-content {
    grid-template-columns: 1fr !important;
  }
}

.detail-left-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
  padding: 40px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  position: relative !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border-radius: 20px 0 0 20px !important;
}

@media (max-width: 1000px) {
  .detail-left-section {
    position: relative !important;
    border-radius: 20px 20px 0 0 !important;
  }
}

.detail-card-preview {
  background: white !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  height: auto !important;
  flex-shrink: 0 !important;
}

.detail-card-preview:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3) !important;
}

/* Modal içi galeri yüksekliğini modal boyuna göre orantılar */
.detail-card-preview #detailSlider .image-slider,
.detail-card-preview .image-slider {
  width: 100% !important;
  height: clamp(280px, 55vh, 520px) !important;
  aspect-ratio: 4 / 3 !important;
  margin: 0 !important;
}

.detail-preview-image {
  width: 100% !important;
  height: clamp(280px, 55vh, 520px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 100px !important;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
  overflow: hidden !important;
  position: relative !important;
  aspect-ratio: 4 / 3 !important;
}

.detail-preview-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.detail-preview-content {
  padding: 16px !important;
  background: white !important;
  border-top: 1px solid #f0f0f0 !important;
}

.detail-preview-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.3 !important;
}

.detail-preview-callsign {
  font-size: 13px !important;
  color: #667eea !important;
  font-weight: 600 !important;
  margin: 0 0 8px 0 !important;
}

.detail-preview-price {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #667eea !important;
  margin: 0 !important;
}

.detail-right-section {
  padding: 40px !important;
  overflow-y: auto !important;
  max-height: 90vh !important;
}

.detail-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 32px !important;
  padding-bottom: 24px !important;
  border-bottom: 2px solid #f0f0f0 !important;
}

.detail-header h2 {
  margin: 0 !important;
  font-size: 28px !important;
  color: #1a1a1a !important;
  font-weight: 700 !important;
}

.detail-header .close-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: #f5f5f5 !important;
  border: none !important;
  border-radius: 50% !important;
  color: #666 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  font-weight: bold !important;
  transition: all 0.3s !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  width: 40px !important;
  height: 40px !important;
  flex-shrink: 0 !important;
}

.detail-header .close-btn:hover {
  background: #e0e0e0 !important;
  transform: rotate(90deg) !important;
}

.detail-sections {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}

.seller-section {
  background: #f8f9fa !important;
  border-radius: 12px !important;
  padding: 24px !important;
  border: 1px solid #e0e0e0 !important;
}

.seller-section h3 {
  margin: 0 0 20px 0 !important;
  font-size: 20px !important;
  color: #1a1a1a !important;
  font-weight: 700 !important;
}

.detail-info {
  margin-bottom: 16px !important;
}

.detail-info:last-child {
  margin-bottom: 0 !important;
}

.detail-label {
  font-size: 13px !important;
  color: #666 !important;
  font-weight: 600 !important;
  margin: 0 !important;
  text-align: left !important;
}

.detail-value {
  font-size: 14px !important;
  color: #1a1a1a !important;
  font-weight: 500 !important;
  margin: 0 !important;
  text-align: left !important;
}

.detail-description {
  line-height: 1.7 !important;
  color: #4a4a4a !important;
  font-size: 16px !important;
}

.detail-description p {
  margin: 0 !important;
}

.product-details {
  background: #f8f9fa !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 12px !important;
  padding: 24px !important;
}

.product-details h3 {
  margin: 0 0 20px 0 !important;
  font-size: 20px !important;
  color: #1a1a1a !important;
  font-weight: 700 !important;
}

/* Mobile responsive for detail panel */
@media (max-width: 768px) {
  .detail-modal-overlay {
    padding: 0 !important;
    align-items: flex-start !important;
  }

  .detail-modal-content {
    height: 100vh !important;
    border-radius: 0 !important;
    display: block !important;
    overflow-y: auto !important; /* tüm içerik birlikte kayar */
    -webkit-overflow-scrolling: touch !important;
  }

  /* Mobilde sol bölüm gösterilsin; sticky değil, kompakt olsun */
  .detail-left-section {
    position: relative !important;
    padding: 16px 16px !important;
    height: auto !important;
    border-radius: 0 !important;
  }

  .detail-right-section {
    padding: 0 !important;
    overflow: visible !important; /* kaydırmayı modal yapıyor */
    height: auto !important;
  }

  /* Mobil için kompakt header */
  .detail-header {
    position: sticky !important;
    top: 0 !important;
    background: white !important;
    z-index: 100 !important;
    margin-bottom: 0 !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  }

  .detail-header h2 {
    font-size: 18px !important;
    line-height: 1.3 !important;
  }

  .detail-header .close-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 20px !important;
  }

  /* Mobil için thumbnail galeri */
  .detail-sections {
    padding: 0 !important;
  }

  /* Ana görsel alanı - kompakt */
  .image-slider {
    height: 220px !important;
    border-radius: 0 !important;
    margin-bottom: 8px !important;
  }

  /* Mobil için ürün özet kartı (görsel altında) */
  .detail-card-preview {
    display: block !important;
    background: white !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 16px 20px !important;
    border-bottom: 8px solid #f8f9fa !important;
    margin-bottom: 0 !important;
  }

  .detail-card-preview:hover {
    transform: none !important;
  }

  /* Mobilde ana görsel gösterilsin (kompakt) */
  .detail-preview-image {
    display: flex !important;
    height: 180px !important;
    font-size: 60px !important;
  }
  /* Mobilde özet başlık/fiyat/callsign bloklarını gizle (detaylarda var) */
  .detail-preview-content {
    display: none !important;
  }


  /* Eğer görsel özet kartının içindeyse gizlenmesin */
  .detail-card-preview .detail-preview-image {
    display: flex !important;
  }

  .detail-preview-content {
    padding: 0 !important;
  }

  .detail-preview-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.4 !important;
  }

  /* Thumbnail galeri - horizontal scroll */
  .thumbnails {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding: 0 16px 12px 16px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .thumbnails::-webkit-scrollbar {
    display: none !important;
  }

  .thumbnail {
    flex-shrink: 0 !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 8px !important;
  }

  /* İçerik bölümleri */
  .product-details,
  .seller-section {
    margin: 0 20px 16px 20px !important;
    padding: 16px !important;
    border-radius: 12px !important;
  }

  .product-details h3,
  .seller-section h3 {
    font-size: 16px !important;
    margin-bottom: 12px !important;
  }

  .detail-description {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  /* Mobil için özel fiyat kartı */
  .detail-preview-price {
    display: inline-block !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 16px 0 !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
  }

  .detail-preview-callsign {
    display: inline-block !important;
    background: #f8f9fa !important;
    color: #667eea !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 0 0 16px 8px !important;
    border: 1px solid #e0e0e0 !important;
  }
}

  .detail-preview-price {
    font-size: 24px !important;
  }

  .product-details h3,
  .seller-section h3 {
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {
  .detail-header {
    padding: 12px 16px !important;
  }

  .detail-header h2 {
    font-size: 16px !important;
  }

  .detail-header .close-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 18px !important;
  }

  .image-slider {
    height: 200px !important;
  }

  .detail-card-preview {
    padding: 12px 16px !important;
  }

  .detail-preview-title {
    font-size: 15px !important;
  }

  .detail-preview-price {
    font-size: 18px !important;
    padding: 6px 12px !important;
  }

  .detail-preview-callsign {
    font-size: 12px !important;
    padding: 5px 10px !important;
  }

  .thumbnails {
    padding: 0 16px 12px 16px !important;
    gap: 6px !important;
  }

  .thumbnail {
    width: 55px !important;
    height: 55px !important;
  }

  .product-details,
  .seller-section {
    margin: 0 16px 12px 16px !important;
    padding: 12px !important;
  }

  .product-details h3,
  .seller-section h3 {
    font-size: 15px !important;
    margin-bottom: 10px !important;
  }

  .detail-description {
    font-size: 13px !important;
  }
}

    .load-more-container {
      text-align: center;
      margin-top: 32px;
    }

    .load-more-btn {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: #ffffff;
      border: 2px solid transparent;
      padding: 16px 48px;
      border-radius: 50px;
      font-size: 18px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    }

    .load-more-btn:hover {
      background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
      transform: translateY(-3px) scale(1.02);
      box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
    }
    
    .load-more-btn:active {
      transform: translateY(-1px) scale(1);
    }

    .load-more-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    /* Modal Overlay */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      animation: fadeIn 0.3s ease;
      padding: 20px;
    }

    #addListingModal {
      z-index: 5000;
    }

    .modal-content {
      background: white;
      border-radius: 20px;
      padding: 40px;
      max-width: 1200px;
      width: 100%;
      max-height: 90%;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      animation: slideUp 0.3s ease;
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 32px;
      padding-bottom: 20px;
      border-bottom: 2px solid #f0f0f0;
    }

    .modal-header h2 {
      margin: 0;
      font-size: 28px;
      color: #1a1a1a;
      font-weight: 700;
    }

    .modal-close {
      background: #f5f5f5;
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      transition: all 0.3s;
      flex-shrink: 0;
      padding: 0;
      margin: 0;
      line-height: 1;
    }

    .modal-close:hover {
      background: #e0e0e0;
      transform: rotate(90deg);
    }

    .modal-body {
      display: grid;
      grid-template-columns: 380px 1fr;
      gap: 40px;
      align-items: start;
    }

    .preview-section {
      position: sticky;
      top: 0;
    }

    @media (max-width: 768px) {
      .modal-overlay {
        padding: 10px;
      }

      .modal-content {
        padding: 24px 20px;
        max-height: 95%;
      }

      .modal-header h2 {
        font-size: 22px;
      }

      .modal-body {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      .preview-section {
        position: relative;
        order: -1;
      }
    }

    .preview-card {
      background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
      border-radius: 20px;
      padding: 24px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
      animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
      0%, 100% {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
      }
      50% {
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
      }
    }

    /* Floating Terms Button (Kullanım Sözleşmesi / KVKK) */
    .terms-floating-btn {
      position: fixed;
      bottom: 24px;
      right: 24px;
      display: none;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: #fff;
      padding: 16px 20px;
      border-radius: 18px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      z-index: 99999;
      width: 240px;
      line-height: 1.4;
      animation: pulseTerms 2.8s ease-in-out infinite;
      border: none;
      outline: none;
      appearance: none;
      text-align: left;
      font-family: inherit;
      letter-spacing: .3px;
      backdrop-filter: blur(6px) saturate(140%);
      -webkit-backdrop-filter: blur(6px) saturate(140%);
      transition: box-shadow .3s, transform .25s, background .4s;
      isolation: isolate;
    }

    .terms-floating-btn:active {
      transform: translateY(0) scale(.97);
      box-shadow: 0 8px 30px rgba(0,0,0,.32);
    }

    .terms-floating-btn:focus,
    .terms-floating-btn:hover {
      outline: none;
      box-shadow: 0 16px 52px rgba(0,0,0,0.35);
      transform: translateY(-2px);
    }

    .terms-floating-btn small {
      display: block;
      font-size: 12px;
      font-weight: 400;
      opacity: .9;
      margin-top: 2px;
      line-height: 1.3;
    }

    @keyframes pulseTerms {
      0%, 100% { box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
      50% { box-shadow: 0 18px 56px rgba(102,126,234,0.55); }
    }

    @media (max-width: 768px) {
      .terms-floating-btn {
        bottom: 16px;
        right: 16px;
        width: 200px;
        padding: 14px 16px;
        font-size: 14px;
        gap: 4px;
      }
    }

    .preview-header {
      text-align: center;
      margin-bottom: 20px;
    }

    .preview-header h3 {
      margin: 0 0 8px 0;
      font-size: 18px;
      color: #1a1a1a;
      font-weight: 700;
    }

    .preview-header p {
      margin: 0;
      font-size: 13px;
      color: #666666;
    }

    .preview-listing-card {
      background: white;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
      transition: all 0.3s;
    }

    .preview-listing-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    }

    .preview-listing-image {
      width: 100%;
      height: 200px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 64px;
      background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
      overflow: hidden;
      position: relative;
    }

    .preview-listing-image img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
    }

    .preview-listing-content {
      padding: 20px;
    }

    .preview-listing-title {
      font-size: 16px;
      font-weight: 600;
      color: #1a1a1a;
      margin: 0 0 12px 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-height: 22px;
    }

    .preview-listing-callsign {
      font-size: 13px;
      color: #667eea;
      font-weight: 600;
      margin: 0 0 8px 0;
      min-height: 19px;
    }

    .preview-listing-price {
      font-size: 22px;
      font-weight: 700;
      color: #2d3748;
      margin: 0;
      min-height: 30px;
    }

    .preview-empty-state {
      color: #999;
      font-style: italic;
    }

    @media (max-width: 1000px) {
      .modal-body {
        grid-template-columns: 1fr;
      }
      
      .preview-section {
        position: relative;
        order: -1;
      }
    }

    .listing-actions {
      position: absolute;
      top: 12px;
      right: 12px;
      display: flex;
      gap: 8px;
      z-index: 10;
      opacity: 0;
      transition: opacity 0.3s;
    }

    .listing-card:hover .listing-actions {
      opacity: 1;
    }

    /* Benim İlanlarım sayfasında butonlar her zaman görünür */
    .my-listings-page .listing-actions {
      opacity: 1;
      top: 8px;
      right: 8px;
    }

    .action-btn {
      background: rgba(0, 0, 0, 0.75);
      color: white;
      border: none;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      transition: all 0.3s;
      backdrop-filter: blur(10px);
    }

    .my-listings-page .action-btn {
      width: 40px;
      height: 40px;
      font-size: 18px;
      background: rgba(102, 126, 234, 0.9);
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

    .action-btn:hover {
      background: rgba(0, 0, 0, 0.9);
      transform: scale(1.1);
    }

    .my-listings-page .action-btn:hover {
      transform: scale(1.15);
      box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
    }

    .action-btn.edit-btn:hover {
      background: #667eea;
    }

    .my-listings-page .action-btn.edit-btn:hover {
      background: #667eea;
    }

    .action-btn.delete-btn:hover {
      background: #ef4444;
    }

    .my-listings-page .action-btn.delete-btn:hover {
      background: #ef4444;
    }

    .delete-confirmation {
      background: white;
      border-radius: 16px;
      padding: 32px;
      max-width: 500px;
      width: 100%;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      animation: slideUp 0.3s ease;
      text-align: center;
    }

    .delete-confirmation h3 {
      margin: 0 0 16px 0;
      font-size: 24px;
      color: #1a1a1a;
      font-weight: 700;
    }

    .delete-confirmation p {
      margin: 0 0 24px 0;
      color: #666;
      font-size: 16px;
      line-height: 1.6;
    }

    .delete-confirmation-actions {
      display: flex;
      gap: 12px;
    }

    .btn-delete-confirm {
      flex: 1;
      padding: 14px;
      background: #ef4444;
      color: white;
      border: none;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
    }

    .btn-delete-confirm:hover {
      background: #dc2626;
      transform: translateY(-2px);
    }

    .btn-delete-confirm:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }

    .btn-delete-cancel {
      flex: 1;
      padding: 14px;
      background: white;
      color: #666;
      border: 2px solid #e0e0e0;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
    }

    .btn-delete-cancel:hover {
      background: #f8f9fa;
      border-color: #ccc;
    }

    .my-listings-badge {
      background: #667eea;
      color: white;
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 600;
      position: absolute;
      top: 12px;
      left: 12px;
      z-index: 10;
    }

    .discount-badge {
      background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
      color: white;
      padding: 6px 12px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 700;
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 10;
      box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
      animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
      0%, 100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.05);
      }
    }

    .listing-price .old-price {
      text-decoration: line-through;
      color: #999;
      font-size: 16px;
      font-weight: 400;
      margin-right: 8px;
      opacity: 0.7;
    }

    .listing-price .new-price {
      color: #f5576c;
      font-size: 24px;
      font-weight: 700;
    }

    .image-count-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      background: rgba(0, 0, 0, 0.7);
      color: white;
      padding: 4px 8px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 600;
      z-index: 5;
      backdrop-filter: blur(10px);
    }

    /* Görsel Slider Stilleri */
    .image-slider {
      position: relative;
      width: 100%;
      height: 400px;
      overflow: hidden;
      border-radius: 12px;
      background: #f8f9fa;
    }

    .slider-image {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: none;
      cursor: pointer;
      transition: transform 0.3s ease;
    }

    .slider-image:hover {
      transform: scale(1.02);
    }

    .slider-image.active {
      display: block;
    }

    .slider-nav {
      position: absolute;
      bottom: 20px;
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      gap: 8px;
      z-index: 10;
    }

    .slider-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.5);
      border: 2px solid rgba(255, 255, 255, 0.8);
      cursor: pointer;
      transition: all 0.3s;
    }

    .slider-dot.active {
      background: white;
      transform: scale(1.2);
    }

    .slider-arrows {
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      display: flex;
      justify-content: space-between;
      padding: 0 20px;
      transform: translateY(-50%);
      z-index: 10;
    }

    .slider-arrow {
      background: rgba(0, 0, 0, 0.7);
      color: white;
      border: none;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      font-weight: bold;
      transition: all 0.3s;
      backdrop-filter: blur(10px);
      padding: 0;
      margin: 0;
      line-height: 1;
    }

    .slider-arrow:hover {
      background: rgba(0, 0, 0, 0.9);
      transform: scale(1.1);
    }

    .slider-counter {
      position: absolute;
      top: 20px;
      right: 20px;
      background: rgba(0, 0, 0, 0.7);
      color: white;
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 14px;
      font-weight: 600;
      backdrop-filter: blur(10px);
    }

    /* Küçük görsel önizlemeleri */
    .image-thumbnails {
      display: flex;
      gap: 8px;
      margin-top: 12px;
      overflow-x: auto;
      padding: 8px 8px;
    }

    .thumbnail {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      overflow: hidden;
      cursor: pointer;
      border: 3px solid transparent;
      transition: all 0.3s;
      flex-shrink: 0;
    }

    .thumbnail.active {
      border-color: #667eea;
      transform: scale(1.1);
    }

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

    /* Lightbox Stilleri */
    .lightbox-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.95);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 9999999;
      animation: fadeIn 0.3s ease;
    }

    .lightbox-overlay.active {
      display: flex;
    }

    .lightbox-content {
      position: relative;
      max-width: 90vw;
      max-height: 90vh;
      background: transparent;
    }

    .lightbox-image {
      max-width: 100%;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 8px;
      display: none;
    }

    .lightbox-image.active {
      display: block;
    }

    .lightbox-close {
      position: absolute;
      top: 20px;
      right: 20px;
      background: rgba(0, 0, 0, 0.8);
      color: white;
      border: none;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      font-size: 28px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s;
      z-index: 2001;
      backdrop-filter: blur(10px);
      padding: 0;
      margin: 0;
      line-height: 1;
    }

    .lightbox-close:hover {
      background: rgba(0, 0, 0, 1);
      transform: scale(1.1);
    }

    .lightbox-nav {
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      display: flex;
      justify-content: space-between;
      padding: 0 30px;
      transform: translateY(-50%);
      z-index: 2001;
    }

    .lightbox-arrow {
      background: rgba(0, 0, 0, 0.8);
      color: white;
      border: none;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s;
      backdrop-filter: blur(10px);
      padding: 0;
      margin: 0;
      line-height: 1;
    }

    .lightbox-arrow:hover {
      background: rgba(0, 0, 0, 1);
      transform: scale(1.1);
    }

    .lightbox-counter {
      position: absolute;
      bottom: 30px;
      left: 0;
      right: 0;
      text-align: center;
      color: white;
      font-size: 18px;
      font-weight: 600;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .lightbox-thumbnails {
      position: absolute;
      bottom: 80px;
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      gap: 10px;
      padding: 0 20px;
      z-index: 2001;
    }

    .lightbox-thumbnail {
      width: 60px;
      height: 60px;
      border-radius: 6px;
      overflow: hidden;
      cursor: pointer;
      border: 3px solid transparent;
      transition: all 0.3s;
      opacity: 0.7;
    }

    .lightbox-thumbnail.active {
      border-color: #667eea;
      opacity: 1;
      transform: scale(1.1);
    }

    .lightbox-thumbnail img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Lightbox görselleri için cursor stilleri */
    .lightbox-image.zoomable {
      cursor: zoom-in;
    }

    .lightbox-image.zoomable.zooming {
      cursor: zoom-out;
    }

    .lightbox-image:not(.zoomable) {
      cursor: default;
    }

    /* Zoom efekti - sadece zoomable class'ı olanlarda */
    .lightbox-image.zoomable.zooming {
      transition: transform 0.3s ease;
    }

    .lightbox-image:not(.zoomable) {
      transition: none;
    }

    /* Mobil uyumluluk */
    @media (max-width: 768px) {
      .image-slider {
        height: 200px;
      }
      
      .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
      }
      
      .thumbnail {
        width: 45px;
        height: 45px;
      }

      .lightbox-arrow {
        width: 45px;
        height: 45px;
        font-size: 20px;
      }
      
      .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 22px;
        top: 10px;
        right: 10px;
      }
      
      .lightbox-thumbnail {
        width: 40px;
        height: 40px;
      }
      
      .lightbox-thumbnails {
        bottom: 60px;
      }
      
      .lightbox-counter {
        bottom: 20px;
        font-size: 16px;
      }
    }

    @media (max-width: 480px) {
      .image-slider {
        height: 160px;
      }
      
      .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
      }
      
      .thumbnail {
        width: 40px;
        height: 40px;
      }
    }

    /* Pagination */
    .pagination-container {
      display: flex;
      justify-content: center;
      margin-top: 40px;
      padding: 20px 0;
    }

    .pagination {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
      justify-content: center;
    }

    .pagination-btn {
      padding: 10px 16px;
      border: 2px solid #e0e0e0;
      background: white;
      color: #333;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.3s;
      min-width: 44px;
      text-align: center;
    }

    .pagination-btn:hover:not(.disabled) {
      border-color: #667eea;
      color: #667eea;
      transform: translateY(-2px);
    }

    .pagination-btn.active {
      background: #667eea;
      border-color: #667eea;
      color: white;
    }

    .pagination-btn.disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .pagination-dots {
      padding: 10px 8px;
      color: #666;
    }

    .pagination-btn.prev-next {
      min-width: 100px;
    }

    @media (max-width: 768px) {
      .pagination-btn {
        padding: 8px 12px;
        min-width: 40px;
        font-size: 13px;
      }
      
      .pagination-btn.prev-next {
        min-width: 80px;
      }
    }

    /* WordPress CSS çakışmalarını önlemek için özel stiller */
    #ativ-container .slider-arrow,
    #ativ-container .lightbox-arrow,
    #ativ-container .lightbox-close,
    #ativ-container .close-btn,
    #ativ-container .modal-close {
      appearance: none !important;
      -webkit-appearance: none !important;
      background: rgba(0, 0, 0, 0.7) !important;
      border: none !important;
      border-radius: 50% !important;
      color: white !important;
      cursor: pointer !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 20px !important;
      font-weight: bold !important;
      transition: all 0.3s !important;
      padding: 0 !important;
      margin: 0 !important;
      line-height: 1 !important;
      width: 44px !important;
      height: 44px !important;
    }

    #ativ-container .lightbox-close,
    #ativ-container .close-btn,
    #ativ-container .modal-close {
      background: #f5f5f5 !important;
      color: #666 !important;
      width: 40px !important;
      height: 40px !important;
      font-size: 24px !important;
    }

    #ativ-container .lightbox-close:hover,
    #ativ-container .close-btn:hover,
    #ativ-container .modal-close:hover {
      background: #e0e0e0 !important;
      transform: rotate(90deg) !important;
    }

    #ativ-container .slider-arrow:hover,
    #ativ-container .lightbox-arrow:hover {
      background: rgba(0, 0, 0, 0.9) !important;
      transform: scale(1.1) !important;
    }

    /* WordPress admin bar'ın üstüne çıkması için */
    .detail-modal-overlay,
    .modal-overlay,
    .lightbox-overlay {
      z-index: 999999 !important;
    }

    /* Share Modal Styles */
    .share-modal {
      display: none;
      position: fixed;
      z-index: 9999999 !important;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      animation: fadeIn 0.3s;
    }

    .share-modal.active {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .share-modal-content {
      background: #fff;
      border-radius: 16px;
      padding: 32px;
      max-width: 500px;
      width: 90%;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

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

    .share-modal-title {
      font-size: 24px;
      font-weight: 700;
      color: #111827;
      margin: 0;
    }

    .share-modal-close {
      background: none;
      border: none;
      font-size: 32px;
      color: #9ca3af;
      cursor: pointer;
      padding: 0;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color 0.3s;
    }

    .share-modal-close:hover {
      color: #111827;
    }

    .share-buttons {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-bottom: 24px;
    }

    .share-btn {
      padding: 16px;
      border-radius: 12px;
      border: none;
      cursor: pointer;
      font-weight: 600;
      font-size: 14px;
      transition: all 0.3s;
      text-decoration: none;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: #fff;
    }

    .share-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .share-btn-whatsapp {
      background: #25D366;
    }

    .share-btn-telegram {
      background: #0088cc;
    }

    .share-btn-messenger {
      background: #0084ff;
    }

    .share-btn-copy {
      background: #6b7280;
      grid-column: span 2;
    }

    .share-url-box {
      background: #f9fafb;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      padding: 12px;
      font-size: 13px;
      color: #6b7280;
      word-break: break-all;
      margin-top: 16px;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }


