<style>
    @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

    :root {
      /* Light theme colors */
      --bg: #ffffff;
      --text: #111111;
      --header-bg: #f7f7f7;
      --nav-link: #444;
      --nav-link-hover: #ff4a4a;
      --card-bg: #f1f1f1;
      --border: #ddd;
      --aside-bg: #f9f9f9;
      --dropdown-bg: #f1f1f1;
      --bubble-bg: #eee;
      --bubble-hover-bg: #ddd;
      --bubble-active-bg: #444;
      --search-bg: #f1f1f1;
      --search-border: #ccc;
      --search-focus-border: #00c3ff;
      --search-focus-shadow: #00c3ff33;
      --search-icon: #888;
      --suggestions-bg: #ffffff;
      --suggestions-border: #ddd;
      --suggestions-shadow: rgba(0, 0, 0, 0.1);
      --suggestion-hover: #f0f0f0;
      --heading-bg: #f0f0f0;
      --heading-text: #666;
      --suggestion-text: #333;
      --match-bg: #00c3ff;
      --match-text: #000;
      --no-results: #999;
      --item-card-bg: #ffffff;
      --item-card-shadow: rgba(0, 0, 0, 0.1);
      --item-details: #666;
      --category-accent: #7b2cff;
      --category-glow: 0 0 4px rgba(123, 44, 255, 0.2);
      --accent-color: #8B5CF6; /* A vibrant purple */
      --accent-glow: 0 0 8px rgba(139, 92, 246, 0.3);
    }

    body.dark {
      /* Dark theme colors */
      --bg: #121212;
      --text: #eee;
      --header-bg: #1f1f1f;
      --nav-link: #bbb;
      --nav-link-hover: #ff4a4a;
      --card-bg: #1e1e1e;
      --border: #333;
      --aside-bg: #1a1a1a;
      --dropdown-bg: #252525;
      --bubble-bg: #2d2d2d;
      --bubble-hover-bg: #3d3d3d;
      --bubble-active-bg: #00c3ff;
      --search-bg: #1e1e1e;
      --search-border: #333;
      --search-focus-border: #00c3ff;
      --search-focus-shadow: #00c3ff33;
      --search-icon: #888;
      --suggestions-bg: #1a1a1a;
      --suggestions-border: #333;
      --suggestions-shadow: rgba(0, 0, 0, 0.5);
      --suggestion-hover: #333;
      --heading-bg: #111;
      --heading-text: #999;
      --suggestion-text: #ddd;
      --match-bg: #00c3ff;
      --match-text: #000;
      --no-results: #777;
      --item-card-bg: #1f1f1f;
      --item-card-shadow: rgba(0, 0, 0, 0.4);
      --item-details: #aaa;
      --category-accent: #bb33ff;
      --category-glow: 0 0 10px rgba(187, 51, 255, 0.3);
      --accent-color: #A78BFA;
      --accent-glow: 0 0 12px rgba(139, 92, 246, 0.4);
    }

    /* ===== BASE STYLES ===== */
    body {
      margin: 0;
      font-family: 'Roboto', sans-serif;
      background-color: var(--bg);
      color: var(--text);
      transition: background-color 0.3s ease, color 0.3s ease;
    }

    header, nav, .item-card, aside, footer, .search-input-wrapper input {
      transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
    }

    /* ===== MAIN CONTENT LAYOUT ===== */
    main {
      display: flex;
      min-height: calc(100vh - 82px);
      flex-direction: column;
      padding: 1rem;
    }

    @media (min-width: 992px) {
      main {
        flex-direction: row;
        padding: 2rem;
      }
    }

    /* ===== SIDEBAR ===== */
    .marketplace-categories {
      --category-accent: #bb33ff;
      --category-glow: 0 0 15px rgba(187, 51, 255, 0.5);
      background: rgba(15, 15, 25, 0.9);
      width: 260px;
      border-radius: 16px;
      padding: 2rem;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(255, 255, 255, 0.08);
      margin-left: 0;
      margin-bottom: 2rem;
      backdrop-filter: blur(6px);
      flex-shrink: 0;
    }

    .marketplace-categories h3 {
      color: var(--category-accent);
      font-size: 1.4rem;
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
      border-bottom: 2px solid rgba(187, 51, 255, 0.3);
      text-shadow: var(--category-glow);
      letter-spacing: 0.5px;
    }

    .category-list {
      list-style: none;
      padding: 0;
      margin: 0 0 2rem 0;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .category-list li a {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.8rem 1rem;
      border-radius: 10px;
      color: var(--text);
      text-decoration: none;
      background: transparent;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      font-weight: 500;
    }

    .category-list li a i {
      color: var(--category-accent);
      min-width: 18px;
      text-align: center;
    }

    .category-list li a::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 4px;
      background: var(--category-accent);
      transform: scaleY(0);
      transform-origin: bottom;
      transition: transform 0.3s ease;
    }

    .category-list li a:hover {
      background: rgba(187, 51, 255, 0.08);
      padding-left: 1.25rem;
    }

    .category-list li a:hover::before {
      transform: scaleY(1);
    }

    .category-list li a.active {
      background: rgba(187, 51, 255, 0.15);
      color: var(--category-accent);
      font-weight: 600;
    }

    .category-list li a.active::before {
      transform: scaleY(1);
    }

    /* Integrated Filters Section */
    .marketplace-categories .category-filters {
      border-top: 1px solid rgba(187, 51, 255, 0.15);
      padding: 1.5rem 0 0 0;
      margin-top: 1.5rem;
      background: transparent;
      border-radius: 0;
      border: none;
    }

    .marketplace-categories .category-filters h4 {
      color: var(--category-accent);
      text-shadow: var(--category-glow);
      margin-bottom: 1.2rem;
    }

    .marketplace-categories .filter-option {
      font-size: 0.85rem;
      padding: 0.5rem 0.9rem;
    }

    .marketplace-categories .filter-options-container {
      gap: 0.4rem;
    }

    .clear-filters {
      display: inline-block;
      margin-top: 1rem;
      padding: 0.5rem 1rem;
      background: rgba(187, 51, 255, 0.1);
      color: var(--category-accent);
      border: 1px solid rgba(187, 51, 255, 0.3);
      border-radius: 6px;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s ease;
      font-weight: 500;
    }

    .clear-filters:hover {
      background: rgba(187, 51, 255, 0.2);
      border-color: var(--category-accent);
      box-shadow: 0 0 8px rgba(187, 51, 255, 0.3);
    }

    /* Light Mode */
    body:not(.dark) .marketplace-categories {
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
      border-color: rgba(0, 0, 0, 0.05);
      background: #fff;
      border-style: solid;
      border-width: 1px;
      border-radius: 12px;
    }

    body:not(.dark) .category-list li a:hover {
      background: rgba(0, 102, 204, 0.1);
      color: var(--accent-color);
      border-radius: 8px;
      transition: background-color 0.3s ease;
    }

    body:not(.dark) .category-list li a.active {
      background: rgba(0, 102, 204, 0.15);
      color: var(--accent-color);
      font-weight: 700;
      border-radius: 8px;
    }

    /* ===== CONTENT SECTION ===== */
    section.content {
      flex: 1;
      padding: 1rem;
      background: var(--bg);
      max-width: 1400px;
      margin: 0 auto;
      width: 100%;
    }

    .content h2 {
      font-size: 2rem;
      margin-bottom: 1.5rem;
      font-weight: 600;
      letter-spacing: 0.5px;
      margin: 0;
    }

    /* ===== CONTENT HEADER ===== */
    .content-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      padding: 0 0.5rem;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
      gap: 1rem;
    }

    .content-header h2 {
      flex: 1;
      margin: 0;
      min-width: 200px;
    }

    /* ===== POST LISTING BUTTON ===== */
    .post-listing-btn {
      background-color: #ff5d8f;
      color: white;
      font-weight: 600;
      font-size: 1rem;
      padding: 0.6rem 1.2rem;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.3s ease;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-left: auto;
      white-space: nowrap;
    }

    .post-listing-btn:hover {
      background-color: #e4487b;
    }

    /* ===== ITEMS GRID ===== */
    .items-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
      padding: 0.5rem;
    }

    /* Enhanced Clickable Card */
   .item-title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.item-description {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.item-lf {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 6px;
  box-sizing: border-box; /* ✅ This is key */
}

.item-seller,
.item-tags {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

    .item-card {
      background: var(--item-card-bg);
      border-radius: 12px;
      overflow: hidden;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.1);
      position: relative;
      display: block;
      text-decoration: none;
      color: inherit;
    }

    .item-card-link {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 1;
    }

    .item-card-content {
      position: relative;
      z-index: 2;
      height: 100%;
      display: flex;
      flex-direction: column;
      padding-top: 0;
      opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .item-card-content.loaded {
    opacity: 1;
  transform: translateY(0);
   }

    .item-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), var(--accent-glow);
      border-color: var(--accent-color);
    }

    .item-card:focus-within {
      box-shadow: 0 0 0 3px var(--accent-color);
      outline: none;
    }

    .item-image {
      width: 100%;
      height: 180px;
      object-fit: cover;
      border-bottom: 2px solid var(--accent-color);
      transition: opacity 0.3s ease;
    }

    .item-card:hover .item-image {
      opacity: 0.9;
    }

    .item-info {
      padding: 1.2rem;
      color: var(--text);
      flex-grow: 1;
    }

    .item-title {
      font-size: 1.2rem;
      margin: 0 0 0.5rem 0;
      font-weight: 600;
    }

    .item-description {
      font-size: 0.9rem;
      margin: 0.8rem 0;
      line-height: 1.4;
      opacity: 0.9;
    }

    /* ===== ITEM TAGS ===== */

    .item-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin: 0.5rem 0;
    }

    .tag {
      padding: 0.3rem 0.6rem;
      border-radius: 20px;
      font-size: 0.7rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border: 1px solid;
      transition: all 0.2s ease;
      position: relative;
      z-index: 3;
      cursor: pointer;
    }

    .tag:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    /* Tag Color Variants */
    .tag-weapon {
      background: rgba(0, 150, 255, 0.15);
      color: #4db8ff;
      border-color: #4db8ff;
    }

    .tag-weapon:hover {
      box-shadow: 0 0 8px rgba(77, 184, 255, 0.4);
    }

    .tag-fetish {
      background: rgba(255, 51, 153, 0.15);
      color: #ff3399;
      border-color: #ff3399;
    }

    .tag-fetish:hover {
      box-shadow: 0 0 8px rgba(255, 51, 153, 0.4);
    }

    .tag-bundle {
      background: rgba(153, 102, 255, 0.15);
      color: #9966ff;
      border-color: #9966ff;
    }

    .tag-bundle:hover {
      box-shadow: 0 0 8px rgba(153, 102, 255, 0.4);
    }

    .tag-feet {
      background: rgba(255, 80, 80, 0.15);
      color: #ff5050;
      border-color: #ff5050;
    }

    .tag-feet:hover {
      box-shadow: 0 0 8px rgba(255, 80, 80, 0.4);
    }

    .tag-video {
      background: rgba(255, 178, 102, 0.15);
      color: #ffb266;
      border-color: #ffb266;
    }

    .tag-video:hover {
      box-shadow: 0 0 8px rgba(255, 178, 102, 0.4);
    }

/* Skin tag styles - YELLOW */
.tag-skin {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border-color: #ffc107;
}

.tag-skin:hover {
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
}

.filter-option.tag-skin:has(input[type="checkbox"]:checked) {
  background: #ffc107;
  border-color: #ffc107;
  color: #000;
}

.suggestion-tag.tag-skin { 
  background: #ffc107; 
  color: #000; 
}

    /* ===== ITEM META ===== */
    .item-meta {
      display: flex;
      gap: 10px;
      margin: 5px 0;
      font-size: 13px;
      color: var(--text-muted);
    }

    .item-time, .item-location {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 0.75rem;
      color: var(--item-details);
      opacity: 0.8;
      z-index: 3;
    }

    .item-location i {
      font-size: 12px;
    }

    /* Enhanced LF Section */
    .item-info p.item-lf {
      background-color: var(--lf-bg, rgba(30, 30, 47, 0.7));
      font-weight: 500;
      font-size: 0.95em;
      padding: 6px 12px;
      border-radius: 6px;
      display: inline-block;
      margin: 0.3em 0;
      transition: all 0.2s ease;
      position: relative;
      z-index: 3;
    }

    /* Light Mode LF Overrides */
    body:not(.dark) p.item-lf {
      --lf-bg: rgba(236, 239, 241, 0.9);
      --lf-color: #d35400;
      --lf-border: #e67e22;
            border: 1px solid var(--lf-border, var(--accent-color));
    }

    .item-info p.item-lf:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .item-info p.item-seller {
      color: var(--text);
      opacity: 0.8;
      font-size: 0.85rem;
      position: relative;
      z-index: 3;
    }

    .item-seller strong {
      color: var(--accent-color);
      font-weight: 500;
    }

    /* ===== MODALS ===== */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }

    .modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .modal-content {
      background: var(--bg);
      border-radius: 12px;
      width: 90%;
      max-width: 600px;
      max-height: 90vh;
      overflow-y: auto;
      padding: 2rem;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
      transform: translateY(20px);
      transition: transform 0.3s ease;
    }

    .modal-overlay.active .modal-content {
      transform: translateY(0);
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.5rem;
    }

    .modal-title {
      font-size: 1.5rem;
      margin: 0;
    }

    .close-modal {
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--nav-link);
    }

    .close-modal:hover {
      color: var(--nav-link-hover);
    }

    .form-group {
      margin-bottom: 1.5rem;
    }

    .form-group label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 500;
      color: var(--text);
    }

    .form-control {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: var(--card-bg);
      color: var(--text);
      font-family: inherit;
      transition: border-color 0.2s;
    }

    .form-control:focus {
      outline: none;
      border-color: var(--category-accent);
    }

    .form-actions {
      display: flex;
      justify-content: flex-end;
      gap: 1rem;
      margin-top: 2rem;
    }

    .btn {
      padding: 0.75rem 1.5rem;
      border-radius: 6px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .btn-primary {
      background: var(--category-accent);
      color: white;
      border: none;
    }

    .btn-primary:hover {
      opacity: 0.9;
    }

    .btn-secondary {
      background: var(--card-bg);
      color: var(--text);
      border: 1px solid var(--border);
    }

    .btn-secondary:hover {
      background: var(--bubble-hover-bg);
    }

    .checkbox-group {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      margin-bottom: 1rem;
    }

    .checkbox-group input {
      margin-top: 0.25rem;
    }

    .checkbox-group label {
      font-size: 0.9rem;
      color: var(--nav-link);
    }

    .age-verification {
      background: rgba(255, 74, 74, 0.1);
      padding: 1rem;
      border-radius: 8px;
      margin-bottom: 1.5rem;
      border-left: 3px solid var(--nav-link-hover);
    }

    .age-verification h4 {
      margin-top: 0;
      color: var(--nav-link-hover);
    }

    /* Image Upload Styles */
    .image-upload-container {
      margin-top: 0.5rem;
    }

    .upload-area {
      border: 2px dashed var(--border);
      border-radius: 8px;
      padding: 2rem;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s ease;
      background: rgba(255,255,255,0.05);
    }

    .upload-area:hover {
      border-color: var(--category-accent);
      background: rgba(187, 51, 255, 0.05);
    }

    .upload-area i {
      font-size: 2rem;
      color: var(--nav-link);
      margin-bottom: 0.5rem;
    }

    .upload-area p {
      margin: 0;
      color: var(--nav-link);
    }

    .upload-hint {
      display: block;
      margin-top: 0.5rem;
      color: var(--nav-link);
      opacity: 0.7;
    }

    .image-preview {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 1rem;
    }

    .preview-image {
      position: relative;
      width: 80px;
      height: 80px;
      border-radius: 6px;
      overflow: hidden;
    }

    .preview-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .remove-image {
      position: absolute;
      top: 2px;
      right: 2px;
      background: rgba(0,0,0,0.7);
      color: white;
      border: none;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 0.7rem;
    }

    /* Tag selector styles */
    .tags-container {
      margin-top: 0.5rem;
    }

    .tag-options {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .tag-option {
      display: inline-flex;
      align-items: center;
      padding: 0.5rem 0.8rem;
      border-radius: 20px;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s ease;
      user-select: none;
      border: 1px solid var(--border);
      background: var(--card-bg);
    }

    .tag-option:hover {
      border-color: var(--category-accent);
    }

    .tag-option input {
      margin-right: 0.5rem;
    }

    .tag-option input:checked + span {
      color: var(--category-accent);
      font-weight: 500;
    }

    /* Success Notification Styles */
    .success-notification {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      background: #4CAF50;
      color: white;
      padding: 15px 25px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      display: flex;
      align-items: center;
      gap: 10px;
      z-index: 1100;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .success-notification.show {
      opacity: 1;
    }

    .success-notification i {
      font-size: 1.2rem;
    }

    /* ===== FOOTER ===== */
    footer {
      background: var(--header-bg);
      color: var(--nav-link);
      padding: 2rem 1rem;
      border-top: 1px solid var(--border);
      font-size: 0.9rem;
    }

    .footer-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1rem;
    }

    .footer-section {
      margin-bottom: 1.5rem;
    }

    .footer-heading {
      color: var(--nav-link-hover);
      font-size: 1rem;
      margin-bottom: 1rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .footer-links {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer-links li {
      margin-bottom: 0.5rem;
    }

    .footer-links a {
      color: var(--nav-link);
      text-decoration: none;
      transition: color 0.2s ease;
      display: inline-block;
      padding: 0.2rem 0;
    }

    .footer-links a:hover {
      color: var(--nav-link-hover);
    }

    .social-links {
      display: flex;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .social-links a {
      color: var(--nav-link);
      font-size: 1.2rem;
      transition: color 0.2s ease;
    }

    .social-links a:hover {
      color: var(--nav-link-hover);
    }

    .contact-info {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .contact-info a {
      color: var(--nav-link);
      text-decoration: none;
      transition: color 0.2s ease;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .contact-info a:hover {
      color: var(--nav-link-hover);
    }

    .contact-info i {
      width: 16px;
      text-align: center;
    }

    .feedback-link {
      margin-top: 0.5rem;
    }

    .footer-bottom {
      text-align: center;
      margin-top: 2rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border);
    }

    .footer-bottom p {
      margin: 0.5rem 0;
    }

    .disclaimer {
      font-size: 0.8rem;
      opacity: 0.7;
      margin-top: 1rem;
    }

    /* Dark mode adjustments */
    body.dark .footer-links a,
    body.dark .social-links a,
    body.dark .contact-info a {
      color: var(--nav-link);
    }

    body.dark .footer-links a:hover,
    body.dark .social-links a:hover,
    body.dark .contact-info a:hover {
      color: var(--nav-link-hover);
    }

    /* ===== CATEGORY FILTERS ===== */
    .category-filters {
      margin-top: 2rem;
      position: relative;
      background: rgba(20, 20, 30, 0.7);
      padding: 1.5rem;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(4px);
    }

    .category-option:hover {
      color: var(--category-accent);
      box-shadow: var(--category-glow);
      border-color: var(--category-accent);
    }

    .category-filters h4 {
      font-size: 1.1rem;
      margin-bottom: 1rem;
      color: var(--category-accent);
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      font-weight: 500;
      user-select: none;
      text-shadow: var(--category-glow);
    }

    .filter-count {
      background: var(--category-accent);
      color: white;
      font-size: 0.8rem;
      padding: 0.2rem 0.5rem;
      border-radius: 10px;
      margin-left: 0.5rem;
      transition: all 0.2s ease;
    }

    .filter-options-container {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      max-height: 500px;
      overflow: hidden;
      transition: all 0.3s ease;
    }

    /* === MODAL TAG SELECTED STATE === */
   

    /* === BASE TAG STYLES (MODAL + GRID) === */
    .filter-option {
      display: inline-flex;
      align-items: center;
      padding: 0.5rem 0.8rem;
      border-radius: 20px;
      font-size: 0.85rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border: 1px solid;
      transition: all 0.2s ease;
      position: relative;
      cursor: pointer;
      margin: 0.1rem;
      background: transparent;
      user-select: none;
      color: inherit;
    }

    /* === DEFAULT TAG COLOR STYLES === */
    .filter-option.tag-weapon {
      background: rgba(0, 150, 255, 0.15);
      color: #4db8ff;
      border-color: #4db8ff;
    }

    .filter-option.tag-fetish {
      background: rgba(255, 51, 153, 0.15);
      color: #ff3399;
      border-color: #ff3399;
    }

    .filter-option.tag-bundle,
    .filter-option.tag-rare {
      background: rgba(153, 102, 255, 0.15);
      color: #9966ff;
      border-color: #9966ff;
    }

    .filter-option.tag-feet {
      background: rgba(255, 80, 80, 0.15);
      color: #ff5050;
      border-color: #ff5050;
    }

    .filter-option.tag-video {
      background: rgba(255, 178, 102, 0.15);
      color: #ffb266;
      border-color: #ffb266;
    }

    /* === SELECTED STATE: FULL TAG COLORED === */
    .filter-option input[type="checkbox"]:checked ~ span {
      font-weight: 600;
    }

    /* Fully fill background using :has() */
    .filter-option.tag-weapon:has(input[type="checkbox"]:checked) {
      background: #4db8ff;
      border-color: #4db8ff;
      color: white;
    }

    .filter-option.tag-fetish:has(input[type="checkbox"]:checked) {
      background: #ff3399;
      border-color: #ff3399;
      color: white;
    }

    .filter-option.tag-bundle:has(input[type="checkbox"]:checked),
    .filter-option.tag-rare:has(input[type="checkbox"]:checked) {
      background: #9966ff;
      border-color: #9966ff;
      color: white;
    }

    .filter-option.tag-feet:has(input[type="checkbox"]:checked) {
      background: #ff5050;
      border-color: #ff5050;
      color: white;
    }

    .filter-option.tag-video:has(input[type="checkbox"]:checked) {
      background: #ffb266;
      border-color: #ffb266;
      color: white;
    }

    

    /* ===== AUTH MODALS ===== */
    .auth-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0, 0, 0, 0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    .auth-modal-content {
      background-color: var(--bg);
      padding: 2rem;
      border-radius: 8px;
      width: 100%;
      max-width: 400px;
      position: relative;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .close-auth-modal {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--text);
    }

    .auth-modal h2 {
      margin-top: 0;
      margin-bottom: 1.5rem;
      text-align: center;
    }

    .form-group {
      margin-bottom: 1rem;
    }

    .form-group label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 500;
    }

    .form-group input {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid var(--border);
      border-radius: 4px;
      background-color: var(--bg);
      color: var(--text);
    }

    .auth-submit-btn {
      width: 100%;
      padding: 0.75rem;
      background-color: var(--primary);
      color: white;
      border: none;
      border-radius: 4px;
      font-weight: 500;
      cursor: pointer;
      margin-top: 1rem;
    }

    .auth-footer {
      text-align: center;
      margin-top: 1.5rem;
      font-size: 0.9rem;
    }

    .auth-footer a {
      color: var(--primary);
      text-decoration: none;
      font-weight: 500;
    }

    /* ===== EDIT/DELETE/REPORT BUTTONS ===== */
    .edit-listing-btn {
      position: absolute;
      top: 0px;
      right: 0px;
      left: 55px;
      background: rgba(139, 92, 246, 0.12);
      backdrop-filter: blur(6px);
      border: 1px solid rgba(139, 92, 246, 0.25);
      color: #8B5CF6;
      border-radius: 12px;
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.25s ease;
      z-index: 10;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }

    .edit-listing-btn i {
      font-size: 1.1rem;
      pointer-events: none;
    }

    .edit-listing-btn:hover {
      background: rgba(139, 92, 246, 0.2);
      transform: scale(1.08);
      box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
      color: #7C3AED;
    }

    .delete-listing-btn {
      position: absolute;
      top: 0px;
      right: 0px;
      left: 55px;
      background: rgba(255, 74, 74, 0.12);
      backdrop-filter: blur(6px);
      border: 1px solid rgba(255, 74, 74, 0.25);
      color: #ff4a4a;
      border-radius: 12px;
      width: 38px;
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.25s ease;
      z-index: 10;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }

    .delete-listing-btn i {
      font-size: 1.1rem;
      pointer-events: none;
    }

    .delete-listing-btn:hover {
      background: rgba(255, 74, 74, 0.2);
      transform: scale(1.08);
      box-shadow: 0 4px 12px rgba(255, 74, 74, 0.35);
      color: #ff2a2a;
    }

    /* Dark Mode (default) */
    body.dark .delete-listing-btn {
      background: rgba(255, 74, 74, 0.18);
      border-color: rgba(255, 74, 74, 0.4);
      color: #ff6b6b;
      box-shadow: 0 2px 8px rgba(255, 74, 74, 0.2);
    }

    /* Light Mode Overrides */
    body:not(.dark) .delete-listing-btn {
      background: rgba(255, 74, 74, 0.08);
      color: #cc2b2b;
      border-color: rgba(255, 74, 74, 0.3);
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    body:not(.dark) .delete-listing-btn:hover {
      background: rgba(255, 74, 74, 0.15);
      color: #ff0000;
      box-shadow: 0 3px 10px rgba(255, 74, 74, 0.25);
    }

    /* Dark Mode */
    body.dark .edit-listing-btn {
      background: rgba(139, 92, 246, 0.18);
      border-color: rgba(139, 92, 246, 0.4);
      color: #A78BFA;
      box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
    }

    /* Light Mode */
    body:not(.dark) .edit-listing-btn {
      background: rgba(139, 92, 246, 0.08);
      color: #6B21A8;
      border-color: rgba(139, 92, 246, 0.3);
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    body:not(.dark) .edit-listing-btn:hover {
      background: rgba(139, 92, 246, 0.15);
      color: #7C3AED;
      box-shadow: 0 3px 10px rgba(139, 92, 246, 0.25);
    }

 .report-listing-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 74, 74, 0.12);
  border: 1px solid rgba(255, 74, 74, 0.25);
  color: #ff4a4a;
  border-radius: 10px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 5;
}

.report-listing-btn:hover {
  background: rgba(255, 74, 74, 0.2);
  box-shadow: 0 2px 6px rgba(255, 74, 74, 0.3);
  color: #ff2a2a;
  transform: scale(1.05);
}

body.dark .report-listing-btn {
  background: rgba(255, 74, 74, 0.18);
  border-color: rgba(255, 74, 74, 0.35);
  color: #ff6b6b;
}



    /* ===== LOADING SKELETON ===== */
    .loading-skeleton {
  background-color: #e1e1e1;
  border-radius: 4px;
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
}

.loading-skeleton::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Optional, match Review.html style sizes */
.loading-image {
  height: 180px;
  width: 100%;
}

.loading-title {
  height: 24px;
  width: 80%;
}

.loading-description {
  height: 16px;
  width: 100%;
  margin-bottom: 8px;
}

.loading-lf {
  height: 16px;
  width: 60%;
}

    /* ===== RESPONSIVE ADJUSTMENTS ===== */
    @media (max-width: 1200px) {
      .marketplace-categories {
        width: 220px;
        padding: 1.5rem;
      }
    }

    @media (max-width: 992px) {
      .main-layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
      }

      .marketplace-categories {
        width: 100%;
        margin-left: 0;
        margin-bottom: 1rem;
      }

      .items-grid-container {
        width: 100%;
      }
    }

    @media (max-width: 768px) {
      .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      }

      .modal-content {
        width: 95%;
        padding: 1.5rem;
      }

      .category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 1rem;
      }

      .category-list li {
        width: 100%;
      }

      .category-list li a {
        padding: 0.75rem 1rem;
        justify-content: flex-start;
        font-size: 0.95rem;
      }

      .category-filters {
        margin-top: 1.5rem;
      }

      .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }
      
      .footer-section {
        margin-bottom: 1rem;
      }
    }

    @media (max-width: 600px) {
      .content {
        padding: 1rem;
      }
      
      .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
      }
      
      .item-image {
        height: 150px;
      }
    }

    @media (max-width: 480px) {
      .items-grid {
        grid-template-columns: 1fr;
      }

      .content-header {
        flex-direction: column;
        align-items: flex-start;
      }

      .post-listing-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 0.5rem;
      }

      .footer-section {
        text-align: center;
      }

      .social-links {
        justify-content: center;
      }
    }

    @media (max-width: 400px) {
      .footer-links li {
        margin-bottom: 0.25rem;
      }

      .footer-heading {
        font-size: 0.9rem;
      }

      .footer-links a {
        font-size: 0.85rem;
      }

      .disclaimer {
        font-size: 0.7rem;
      }
    }


