: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);
      --boosted-color: #FFD700; /* Gold color for boosted listings */
      --boosted-glow: 0 0 12px rgba(255, 215, 0, 0.4);
      --boosted-tier1: #FFD700; /* Gold for tier 1 */
      --boosted-tier2: #C0C0C0; /* Silver for tier 2 */
      --boosted-tier3: #CD7F32; /* Bronze for tier 3 */
      --grid-gap: 1.5rem;
      --seller-link-color: #8B5CF6;
    }

    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);
      --boosted-color: #FFD700;
      --boosted-glow: 0 0 15px rgba(255, 215, 0, 0.5);
      --boosted-tier1: #FFD700;
      --boosted-tier2: #C0C0C0;
      --boosted-tier3: #CD7F32;
      --seller-link-color: #A78BFA;
    }

    /* ===== 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;
    }

    /* Boosted listing styles */
    .item-card.boosted {
      border: 2px solid var(--boosted-color);
      box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3), var(--boosted-glow);
      position: relative;
      overflow: hidden;
    }

    .item-card.boosted::before {
      content: "BOOSTED";
      position: absolute;
      top: 10px;
      right: -25px;
      background: var(--boosted-color);
      color: #000;
      font-weight: bold;
      font-size: 0.7rem;
      padding: 2px 30px;
      transform: rotate(45deg);
      z-index: 1;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    /* Boosted tier styles */
    .item-card.boosted-tier1 {
      border-color: var(--boosted-tier1);
      box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3), 0 0 15px rgba(255, 215, 0, 0.4);
    }
    .item-card.boosted-tier1::before {
      background: var(--boosted-tier1);
    }

    .item-card.boosted-tier2 {
      border-color: var(--boosted-tier2);
      box-shadow: 0 4px 12px rgba(192, 192, 192, 0.3), 0 0 12px rgba(192, 192, 192, 0.3);
    }
    .item-card.boosted-tier2::before {
      background: var(--boosted-tier2);
    }

    .item-card.boosted-tier3 {
      border-color: var(--boosted-tier3);
      box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3), 0 0 10px rgba(205, 127, 50, 0.3);
    }
    .item-card.boosted-tier3::before {
      background: var(--boosted-tier3);
    }

    .item-card.boosted:hover {
      box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4), var(--boosted-glow);
      transform: translateY(-5px) scale(1.02);
    }

    .boost-badge {
      background: var(--boosted-color);
      color: #000;
      font-weight: bold;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 0.7rem;
      display: inline-block;
      margin-left: 5px;
    }

    .boost-tier-badge {
      font-weight: bold;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 0.7rem;
      display: inline-block;
      margin-left: 5px;
    }
    .boost-tier1-badge {
      background: var(--boosted-tier1);
      color: #000;
    }
    .boost-tier2-badge {
      background: var(--boosted-tier2);
      color: #000;
    }
    .boost-tier3-badge {
      background: var(--boosted-tier3);
      color: #fff;
    }

    .highlight {
      background-color: #00bfff;
      color: #fff;
      font-size: 0.85em;
      font-weight: bold;
      padding: 2px 8px;
      border-radius: 999px;
      display: inline-block;
    }

    .suggestion-tag.tag-weapon { background: #4db8ff; color: #fff; }
    .suggestion-tag.tag-fetish { background: #ff3399; color: #fff; }
    .suggestion-tag.tag-bundle { background: #9966ff; color: #fff; }
    .suggestion-tag.tag-feet { background: #ff5050; color: #fff; }
    .suggestion-tag.tag-video { background: #ffb266; color: #fff; }
    .suggestion-tag.tag-custom { background: #9c27b0; color: #fff; }
    .suggestion-tag.tag-cosplay { background: #ff5722; color: #fff; }
    .suggestion-tag.tag-gaming { background: #2196f3; color: #fff; }

    /* Admin badge */
    .admin-badge {
      background: #ff4a4a;
      color: white;
      font-size: 0.7rem;
      padding: 2px 6px;
      border-radius: 4px;
      margin-left: 5px;
      display: inline-block;
    }

    /* Status badge */
    .status-badge {
      font-size: 0.7rem;
      padding: 2px 6px;
      border-radius: 4px;
      margin-left: 5px;
      display: inline-block;
    }

    .status-pending {
      background: #ff9800;
      color: #000;
    }

    .status-rejected {
      background: #f44336;
      color: white;
    }

   /* Unified Skeleton Style */
    .trade-skeleton {
      background-color: var(--bubble-bg);
      border-radius: 8px;
      margin-bottom: 1rem;
      overflow: hidden;
      position: relative;
    }

    .trade-skeleton::after {
      content: '';
      position: absolute;
      top: 0; left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
      animation: loading 1.2s ease-in-out infinite;
      will-change: transform;
    }

    .skeleton-image {
      height: 180px;
      width: 100%;
      border-radius: 8px;
    }
    .skeleton-title {
      height: 20px;
      width: 70%;
      border-radius: 6px;
    }
    .skeleton-description {
      height: 14px;
      width: 100%;
      border-radius: 6px;
    }
    .skeleton-lf {
      height: 14px;
      width: 60%;
      border-radius: 6px;
    }

    .skeleton-card {
      pointer-events: none;
      animation: fadeIn 0.3s ease-in-out;
      opacity: 0.95;
    }

    @keyframes loading {
      0% { left: -100%; }
      100% { left: 100%; }
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.98); }
      to { opacity: 1; transform: scale(1); }
    }

    .item-card-content {
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .item-card.loaded .item-card-content {
      opacity: 1;
      transform: translateY(0);
    }

    .item-card {
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.4s ease, transform 0.4s ease;
      transition-delay: var(--card-delay, 0s);
    }

    .item-card.loaded {
      opacity: 1;
      transform: translateY(0);
    }

    .item-image {
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .item-image.loaded {
      opacity: 1;
    }

    .item-card {
      transition: all 0.3s ease;
      border-radius: 12px;
      overflow: hidden;
      position: relative;
      background: var(--item-card-bg);
      border: 1px solid rgba(255, 255, 255, 0.08); /* fallback */
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      margin-bottom: 0 !important; /* Remove gap between listings */
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .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);
      cursor: pointer;
    }

    /* Light mode modal overlay override */
    body:not(.dark) .modal-overlay {
      background: rgba(255, 255, 255, 0.7); /* Light frosted effect */
    }

    body:not(.dark) .modal-content {
      background: #fff; /* Solid white for modal in light mode */
      color: #111;
    }

    /* Seller link styles */
    .seller-link {
      color: var(--seller-link-color);
      text-decoration: none;
      font-weight: 600;
      transition: all 0.2s ease;
    }

    .seller-link:hover {
      text-decoration: underline;
      color: var(--accent-color);
    }

    /* ===== BASE HEADER STYLES ===== */
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.5rem 1.5rem;
      background: var(--header-bg);
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
      height: 70px;
      box-sizing: border-box;
    }

    /* Left section - Logo + Nav */
    .header-left {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      min-width: 200px;
      flex-shrink: 0;
    }

  

    /* Search container - responsive behavior */
    .search-container {
      flex: 1;
      max-width: 650px;
      margin: 0 2rem;
      position: relative;
      display: flex;
      align-items: center;
    }

    .search-icon-mobile {
      display: none;
      font-size: 1.3rem;
      padding: 0.5rem;
      cursor: pointer;
      color: var(--nav-link);
      background: none;
      border: none;
      transition: color 0.2s ease;
    }

    .search-icon-mobile:hover {
      color: var(--nav-link-hover);
    }

    .search-bar {
      width: 100%;
      transition: all 0.3s ease;
    }

    /* Search input styles */
    .search-input-wrapper {
      position: relative;
      width: 100%;
    }

    .search-input-wrapper input {
      width: 100%;
      padding: 0.7rem 2.5rem 0.7rem 3rem;
      border-radius: 999px;
      border: 1px solid var(--search-border);
      background: var(--search-bg);
      color: var(--text);
      font-size: 1rem;
      transition: all 0.3s ease;
      box-sizing: border-box;
    }

    .search-input-wrapper input:focus {
      outline: none;
      border-color: var(--search-focus-border);
      box-shadow: 0 0 0 3px var(--search-focus-shadow);
    }

    .search-icon {
      position: absolute;
      left: 1.2rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--search-icon);
      pointer-events: none;
    }

    .clear-button {
      position: absolute;
      right: 1.2rem;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--search-icon);
      cursor: pointer;
      font-size: 1.2rem;
      padding: 0.25rem;
      opacity: 0.7;
      transition: opacity 0.2s ease;
    }

    .clear-button:hover {
      opacity: 1;
    }

    /* Right section - Actions */
    .header-actions {
      display: flex;
      align-items: center;
      gap: 1.25rem;
      min-width: 200px;
      justify-content: flex-end;
      flex-shrink: 0;
    }

    /* Auth links */
    .auth-links {
      display: flex;
      gap: 0.75rem;
    }

    .auth-links a {
      padding: 0.6rem 1.25rem;
      border-radius: 6px;
      text-decoration: none;
      font-weight: 600;
      font-size: 0.95rem;
      white-space: nowrap;
      transition: all 0.2s ease;
    }

    .auth-links .login-link {
      color: var(--nav-link);
      border: 1px solid var(--border);
    }

    .auth-links .login-link:hover {
      background: rgba(0, 0, 0, 0.05);
    }

    .auth-links .signup-link {
      background: var(--accent-color);
      color: white;
      border: 1px solid var(--accent-color);
    }

    .auth-links .signup-link:hover {
      background: var(--accent-color-hover);
      border-color: var(--accent-color-hover);
    }

    /* Account display */
    .account-display {
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.25rem;
      border-radius: 999px;
      transition: all 0.2s ease;
    }

    .account-display:hover {
      background: rgba(0, 0, 0, 0.05);
    }

    .profile-pic-mini {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: var(--accent-color);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.95rem;
      font-weight: bold;
      transition: transform 0.2s ease;
      flex-shrink: 0;
    }

    .profile-name {
      font-weight: 600;
      font-size: 0.95rem;
      white-space: nowrap;
      max-width: 120px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .account-display:hover .profile-pic-mini {
      transform: scale(1.05);
    }

    /* Notifications */
    .notifications {
      position: relative;
    }

    .notification-bell {
      background: none;
      border: none;
      color: var(--nav-link);
      font-size: 1.3rem;
      cursor: pointer;
      position: relative;
      padding: 0.5rem;
      border-radius: 50%;
      width: 42px;
      height: 42px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }

    .notification-bell:hover {
      background: rgba(0, 0, 0, 0.05);
      color: var(--nav-link-hover);
    }

    .notification-count {
      position: absolute;
      top: 0.25rem;
      right: 0.25rem;
      background: var(--nav-link-hover);
      color: white;
      border-radius: 50%;
      width: 18px;
      height: 18px;
      font-size: 0.7rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
    }

    .notification-dropdown {
      display: none;
      position: absolute;
      right: 0;
      top: calc(100% + 0.5rem);
      background: var(--dropdown-bg);
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
      min-width: 320px;
      max-height: 400px;
      overflow-y: auto;
      z-index: 1000;
      border: 1px solid var(--border);
      transform-origin: top right;
      animation: fadeInDropdown 0.2s ease-out;
    }

    @keyframes fadeInDropdown {
      from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
      }
      to {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }

    .notifications:hover .notification-dropdown {
      display: block;
    }

    .notification-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem;
      border-bottom: 1px solid var(--border);
    }

    .notification-header h4 {
      margin: 0;
      font-size: 1rem;
    }

    .notification-header .mark-all-read {
      background: none;
      border: none;
      color: var(--accent-color);
      cursor: pointer;
      font-size: 0.85rem;
      font-weight: 500;
    }

    .notification-list {
      padding: 0.5rem 0;
    }

    .no-notifications {
      padding: 1.5rem;
      text-align: center;
      color: var(--item-details);
      font-size: 0.9rem;
    }

    /* Wallet dropdown */
    .wallet-dropdown {
      position: relative;
    }

    .wallet-toggle {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      background: var(--bubble-bg);
      padding: 0.5rem 1rem;
      border-radius: 999px;
      font-size: 0.95rem;
      cursor: pointer;
      transition: all 0.2s ease;
      border: 1px solid transparent;
      font-weight: 600;
    }

    .wallet-toggle:hover {
      background: var(--bubble-hover-bg);
    }

    .token-count {
      color: var(--text);
    }

    .token-icon {
      color: gold;
      font-size: 1.1rem;
    }

    .wallet-menu {
      display: none;
      position: absolute;
      right: 0;
      top: calc(100% + 0.5rem);
      background: var(--dropdown-bg);
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
      min-width: 200px;
      z-index: 1000;
      border: 1px solid var(--border);
      transform-origin: top right;
      animation: fadeInDropdown 0.2s ease-out;
    }

    .wallet-dropdown:hover .wallet-menu {
      display: block;
    }

    .wallet-menu a {
      display: flex;
      align-items: center;
      padding: 0.75rem 1rem;
      color: var(--text);
      text-decoration: none;
      transition: background-color 0.2s ease;
      font-size: 0.95rem;
      gap: 0.75rem;
    }

    .wallet-menu a:hover {
      background: var(--bubble-hover-bg);
    }

    .wallet-menu a i {
      width: 1.25rem;
      text-align: center;
      font-size: 1rem;
      color: var(--accent-color);
    }

    /* Settings dropdown */
    .settings-dropdown {
      position: relative;
    }

    .settings-toggle {
      background: none;
      border: none;
      color: var(--nav-link);
      font-size: 1.3rem;
      cursor: pointer;
      padding: 0.5rem;
      border-radius: 50%;
      width: 42px;
      height: 42px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }

    .settings-toggle:hover {
      background: rgba(0, 0, 0, 0.05);
      color: var(--nav-link-hover);
    }

    .settings-menu {
      display: none;
      position: absolute;
      right: 0;
      top: calc(100% + 0.5rem);
      background: var(--dropdown-bg);
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
      min-width: 200px;
      z-index: 1000;
      border: 1px solid var(--border);
      transform-origin: top right;
      animation: fadeInDropdown 0.2s ease-out;
    }

    .settings-dropdown.open .settings-menu {
      display: block;
    }

    .settings-menu a {
      display: flex;
      align-items: center;
      padding: 0.75rem 1rem;
      color: var(--text);
      text-decoration: none;
      transition: background-color 0.2s ease;
      font-size: 0.95rem;
      gap: 0.75rem;
    }

    .settings-menu a:hover {
      background: var(--bubble-hover-bg);
    }

    .settings-menu a i {
      width: 1.25rem;
      text-align: center;
      font-size: 1rem;
      color: var(--accent-color);
    }

    .settings-menu .signout-link {
      color: var(--nav-link-hover);
      border-top: 1px solid var(--border);
      margin-top: 0.25rem;
      padding-top: 0.85rem;
    }

    /* Dark mode toggle */
    .dark-mode-toggle {
      background: none;
      border: none;
      color: var(--nav-link);
      font-size: 1.3rem;
      cursor: pointer;
      padding: 0.5rem;
      border-radius: 50%;
      width: 42px;
      height: 42px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }

    .dark-mode-toggle:hover {
      background: rgba(0, 0, 0, 0.05);
    }

    /* Search overlay */
    .search-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 998;
      backdrop-filter: blur(2px);
    }

    /* Balance update animation */
    .wallet-display.balance-updated {
      animation: pulseBalance 1s ease;
    }

    @keyframes pulseBalance {
      0% { transform: scale(1); }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); }
    }

    /* ===== MOBILE RESPONSIVENESS ===== */
    @media (max-width: 1024px) {
      .marketplace-nav {
        display: none;
      }
      
      .header-left {
        min-width: auto;
      }
      
      .search-container {
        margin: 0 1rem;
      }
    }

    @media (max-width: 768px) {
      header {
        padding: 0.5rem 1rem;
        height: 60px;
      }
      
      .logo img {
        height: 40px;
      }
      
      .logo-text {
        display: none;
      }
      
      .search-container {
        margin: 0 0.5rem;
        justify-content: flex-end;
      }
      
      .search-icon-mobile {
        display: flex;
      }
      
      .search-bar {
        position: fixed;
        left: 0;
        top: 60px;
        width: 100%;
        padding: 0.75rem 1rem;
        background: var(--header-bg);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        display: none;
        animation: slideDown 0.3s ease-out;
      }
      
      @keyframes slideDown {
        from {
          opacity: 0;
          transform: translateY(-10px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      
      .search-bar.active {
        display: block;
      }
      
      .header-actions {
        gap: 0.75rem;
      }
      
      .profile-name {
        display: none;
      }
      
      .auth-links {
        gap: 0.5rem;
      }
      
      .auth-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
      }
      
      .wallet-toggle {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
      }
      
      .profile-pic-mini,
      .notification-bell,
      .settings-toggle,
      .dark-mode-toggle {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
      }
    }

    @media (max-width: 480px) {
      header {
        padding: 0.5rem;
      }
      
      .auth-links .login-link span,
      .auth-links .signup-link span {
        display: none;
      }
      
      .auth-links .login-link,
      .auth-links .signup-link {
        width: 38px;
        height: 38px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
      }
      
      .auth-links .login-link i,
      .auth-links .signup-link i {
        display: block;
        margin: 0;
      }
      
      .auth-links .login-link:before {
        content: "\f2f6"; /* login icon */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
      }
      
      .auth-links .signup-link:before {
        content: "\f234"; /* user-plus icon */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
      }
      
      .wallet-toggle .token-count {
        font-size: 0.85rem;
      }
      
      .token-icon {
        font-size: 1rem;
      }
    }

    /* ===== IMPROVED SIDEBAR STYLES ===== */
    .dashboard-sidebar {
      position: fixed;
      top: 70px;
      bottom: 0;
      left: 0;
      width: 260px;
      background: var(--aside-bg);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      transition: all 0.3s ease;
      overflow: hidden;
      z-index: 900;
      box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    }

    .sidebar-header {
      padding: 1.5rem 1.5rem 1rem;
      border-bottom: 1px solid var(--border);
    }

    .user-profile {
      display: flex;
      align-items: center;
      gap: 1rem;
      cursor: pointer;
      transition: all 0.2s ease;
      padding: 0.5rem;
      border-radius: 8px;
    }

    .user-profile:hover {
      background: rgba(139, 92, 246, 0.1);
    }

    .profile-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      overflow: hidden;
      border: 2px solid var(--accent-color);
      transition: transform 0.2s ease;
      background: var(--card-bg);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .profile-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .profile-info .username {
      font-weight: 600;
      color: var(--text);
      margin-bottom: 0.25rem;
    }

    .profile-info .user-status {
      font-size: 0.8rem;
      color: var(--item-details);
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }

    .user-status::before {
      content: "";
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #ccc; /* Default offline color */
    }

    .user-status.online::before {
      background: #4ade80;
    }

    .user-status.idle::before {
      background: #fbbf24;
    }

    .user-status.busy::before {
      background: #f87171;
    }

    .sidebar-nav {
      flex: 1;
      overflow-y: auto;
      padding: 0.5rem;
    }

    .sidebar-nav ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .nav-item {
      margin: 0.25rem 0;
    }

    .nav-link {
      display: flex;
      align-items: center;
      padding: 0.75rem 1rem;
      color: var(--nav-link);
      text-decoration: none;
      position: relative;
      transition: all 0.2s ease;
      border-radius: 8px;
      font-size: 0.95rem;
    }

    .nav-link i {
      margin-right: 1rem;
      font-size: 1.1rem;
      width: 24px;
      text-align: center;
      color: var(--nav-link);
    }

    .nav-link:hover {
      background: rgba(139, 92, 246, 0.1);
      color: var(--nav-link-hover);
    }

    .nav-link:hover i {
      color: var(--nav-link-hover);
    }

    .nav-item.active .nav-link {
      background: rgba(139, 92, 246, 0.2);
      color: var(--accent-color);
      font-weight: 500;
    }

    .nav-item.active .nav-link i {
      color: var(--accent-color);
    }

    .nav-item.active .nav-link::after {
      content: '';
      position: absolute;
      right: 0;
      top: 0;
      bottom: 0;
      width: 3px;
      background: var(--accent-color);
      border-radius: 3px 0 0 3px;
    }

    .badge {
      margin-left: auto;
      background: var(--accent-color);
      color: white;
      padding: 0.2rem 0.5rem;
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 600;
    }

    .balance {
      margin-left: auto;
      font-weight: 600;
      font-size: 0.9rem;
      color: var(--text);
    }

    .balance i {
      margin-left: 0.3rem;
      color: gold;
    }

    .sidebar-footer {
      padding: 1rem;
      border-top: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .sidebar-toggle, .theme-toggle {
      display: flex;
      align-items: center;
      background: none;
      border: none;
      color: var(--nav-link);
      cursor: pointer;
      padding: 0.6rem;
      border-radius: 6px;
      transition: all 0.2s ease;
      font-size: 0.9rem;
      width: 100%;
    }

    .sidebar-toggle:hover, .theme-toggle:hover {
      background: rgba(139, 92, 246, 0.1);
      color: var(--nav-link-hover);
    }

    .sidebar-toggle i, .theme-toggle i {
      margin-right: 0.75rem;
      font-size: 1rem;
      transition: transform 0.3s ease;
    }

    /* Collapsed state */
    .dashboard-sidebar.collapsed {
      width: 72px;
    }

    .dashboard-sidebar.collapsed .toggle-text,
    .dashboard-sidebar.collapsed .nav-link span,
    .dashboard-sidebar.collapsed .badge,
    .dashboard-sidebar.collapsed .balance,
    .dashboard-sidebar.collapsed .username,
    .dashboard-sidebar.collapsed .user-status {
      display: none;
    }

    .dashboard-sidebar.collapsed .nav-link {
      justify-content: center;
      padding: 0.75rem;
    }

    .dashboard-sidebar.collapsed .nav-link i {
      margin-right: 0;
      font-size: 1.2rem;
    }

    .dashboard-sidebar.collapsed .sidebar-toggle i {
      transform: rotate(180deg);
      margin-right: 0;
    }

    .dashboard-sidebar.collapsed .user-profile {
      justify-content: center;
      padding: 0.5rem 0;
    }

    .dashboard-sidebar.collapsed .profile-info {
      display: none;
    }

    /* Mobile styles */
    @media (max-width: 1024px) {
      .dashboard-sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 999;
        background: var(--header-bg);
        box-shadow: 4px 0 15px rgba(0,0,0,0.1);
      }
      
      .dashboard-sidebar.mobile-visible {
        transform: translateX(0);
      }
      
      .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: var(--header-bg);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        color: var(--nav-link);
      }
      
      .mobile-menu-toggle:hover {
        background: rgba(139, 92, 246, 0.1);
        color: var(--nav-link-hover);
      }
    }

    /* Dark mode adjustments */
    body.dark .dashboard-sidebar {
      border-right-color: rgba(255,255,255,0.1);
    }

    body.dark .sidebar-header,
    body.dark .sidebar-footer {
      border-color: rgba(255,255,255,0.1);
    }

    /* On desktop widths, turn the <main> into two columns */
    @media (min-width: 1025px) {
      main {
        display: flex;
        /* this lines up the sidebar + content side by side */
      }
      .dashboard-sidebar {
        /* keep it pinned if you want */
        position: sticky;
        top: 70px; /* match your header height */
        flex: 0 0 260px; /* exactly 260px wide */
        height: calc(100vh - 70px);
      }
      section.content {
        flex: 1 1 auto;    /* take up the rest of the space */
        padding: 1rem 2rem;/* give it some breathing room */
        /* no margin-left needed if sidebar is sticky/flex-based */
      }
    }

    /* make your cards flow and stay centered */
    @media (min-width: 1025px) {
      .items-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
        max-width: 1600px;   /* prevents it from stretching edge-to-edge */
        margin: 0 auto;      /* centers it within the content area */
      }
    }

  .tag-cosplay {
  background: rgba(255, 87, 34, 0.15);
  color: #ff5722;
  border-color: #ff5722;
}

.tag-custom {
  background: rgba(156, 39, 176, 0.15);
  color: #9c27b0;
  border-color: #9c27b0;
}

.tag-bundle {
  background: rgba(153, 102, 255, 0.15);
  color: #9966ff;
  border-color: #9966ff;
}

.tag-gaming { 
  background: rgba(33, 150, 243, 0.15); 
  color: #2196f3; 
  border-color: #2196f3;
}



/* Add this to testinglisting.html's style section */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--grid-gap);
  padding: 0.5rem;
  margin: 0 auto;
  max-width: 100%;
}

/* Update the media query to maintain consistency */
@media (min-width: 1025px) {
  .items-grid {
    gap: 1.5rem; /* Keep consistent gap */
    max-width: 1600px;
  }
}


/* Add this to your style section */
.item-card {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.items-grid {
  grid-gap: 1rem;
  gap: 1rem;
}

/* Ensure pending listings don't create extra space */
.item-card[data-status="pending"] {
  margin: 0;
  padding: 0;
}


/* Ensure consistent card heights */
.item-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.item-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-image-container {
  flex: 0 0 auto;
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-footer {
  margin-top: auto;
}

/* Boost confirmation modal */
.boost-confirm-modal {
  text-align: center;
  padding: 1.5rem;
}

.boost-confirm-modal h3 {
  margin-top: 0;
  color: var(--accent-color);
}

.boost-confirm-modal p {
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.boost-cost {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--boosted-color);
  margin: 1rem 0;
}

.boost-cost i {
  margin-right: 0.5rem;
}

.boost-confirm-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.boost-confirm-btns button {
  min-width: 120px;
}

/* Boost timer */
.boost-timer {
  font-size: 0.8rem;
  color: var(--item-details);
  margin-top: 0.5rem;
}


/* New Sidebar Styles */
.sidebar {
  width: 250px;
  background-color: var(--aside-bg);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: fixed;
  top: 70px;
  left: 0;
  height: calc(100vh - 70px);
  overflow-y: auto;
  z-index: 900;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

.sidebar-section {
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
}

.sidebar-section h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--heading-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.sidebar-section h3 i {
  font-size: 0.8rem;
  color: var(--accent-color);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  border: 1px solid transparent;
}

.sidebar-link:hover {
  background-color: var(--bubble-hover-bg);
  color: var(--nav-link-hover);
  border-color: var(--border);
  transform: translateX(2px);
}

.sidebar-link.active {
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  box-shadow: var(--accent-glow);
  border-color: var(--accent-color);
}

.sidebar-link.active i {
  color: white;
}

.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 16px;
  color: var(--accent-color);
  transition: color 0.2s ease;
}

.sidebar-link:hover i {
  color: var(--nav-link-hover);
}

.sidebar-link span {
  flex: 1;
}

.sidebar-divider {
  height: 1px;
  background-color: var(--border);
  margin: 1.5rem 0;
}

/* Mobile Sidebar Styles */
.mobile-sidebar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--aside-bg);
  border-top: 1px solid var(--border);
  z-index: 1000;
  padding: 0.75rem 0 0.5rem 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-sidebar-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  padding: 0.5rem 0.25rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
  transition: all 0.2s ease;
  position: relative;
  border: 1px solid transparent;
}

.mobile-sidebar-link i {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
}

.mobile-sidebar-link span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--heading-text);
  text-align: center;
  line-height: 1;
  opacity: 0.8;
  font-family: 'Inter', sans-serif;
}

.mobile-sidebar-link:hover {
  background-color: var(--bubble-hover-bg);
  color: var(--nav-link-hover);
  transform: translateY(-2px);
  border-color: var(--border);
}

.mobile-sidebar-link:hover i {
  color: var(--nav-link-hover);
  transform: scale(1.1);
}

.mobile-sidebar-link:hover span {
  color: var(--nav-link-hover);
  opacity: 1;
}

.mobile-sidebar-link.active {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  box-shadow: var(--accent-glow);
}

.mobile-sidebar-link.active i {
  color: white;
}

.mobile-sidebar-link.active span {
  color: white;
  opacity: 1;
  font-weight: 600;
}

/* Responsive design */
@media (max-width: 1200px) {
  .sidebar {
    width: 80px;
  }
  
  .sidebar-section h3 {
    display: none;
  }
  
  .sidebar-link {
    padding: 0.75rem 0.5rem;
    justify-content: center;
    gap: 0;
  }
  
  .sidebar-link span {
    display: none;
  }
  
  .sidebar-divider {
    margin: 1rem 0.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-sidebar {
    display: block;
  }
  
  .sidebar {
    display: none;
  }
}

@media (max-width: 480px) {
  .mobile-sidebar-section {
    padding: 0 0.5rem;
  }
  
  .mobile-sidebar-link {
    min-width: 45px;
    padding: 0.4rem 0.2rem;
  }
  
  .mobile-sidebar-link i {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
  }
  
  .mobile-sidebar-link span {
    font-size: 0.65rem;
  }
}

/* Animation for mobile sidebar */
.mobile-sidebar {
  animation: slideUpMobile 0.3s ease-out;
}

@keyframes slideUpMobile {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-sidebar-link {
  animation: fadeInUp 0.4s ease-out backwards;
}

.mobile-sidebar-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-sidebar-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-sidebar-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-sidebar-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-sidebar-link:nth-child(5) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark theme specific adjustments */
body.dark .mobile-sidebar {
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* Sidebar link animations */
.sidebar-link {
  opacity: 0;
  animation: slideIn 0.3s ease forwards;
}

.sidebar-link:nth-child(1) { animation-delay: 0.1s; }
.sidebar-link:nth-child(2) { animation-delay: 0.15s; }
.sidebar-link:nth-child(3) { animation-delay: 0.2s; }
.sidebar-link:nth-child(4) { animation-delay: 0.25s; }
.sidebar-link:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Update the content area to work with new sidebar */
section.content {
  margin-left: 250px; /* Match sidebar width */
  padding: 1rem 2rem;
  transition: margin-left 0.3s ease;
  width: calc(100% - 250px); /* Add this to prevent overflow */
  box-sizing: border-box; /* Add this to include padding in width calculation */
}

/* Center the content on large screens */
@media (min-width: 1600px) {
  section.content {
    margin-left: calc(50% - 800px + 125px); /* Center with sidebar offset */
    margin-right: auto;
    max-width: 1600px; /* Max content width */
    width: auto; /* Reset width */
    padding: 1rem 2rem;
  }
}

@media (max-width: 1599px) {
  section.content {
    width: calc(100% - 250px); /* Full width minus sidebar */
  }
}

@media (max-width: 1200px) {
  section.content {
    margin-left: 80px; /* Match collapsed sidebar width */
    width: calc(100% - 80px); /* Adjust width for collapsed sidebar */
  }
}

@media (max-width: 768px) {
  section.content {
    margin-left: 0;
    width: 100%; /* Full width on mobile */
    padding: 1rem 1rem 90px 1rem; /* Increased bottom padding for mobile sidebar */
  }
}

/* Additional fix for very large screens (2K and above) */
@media (min-width: 2000px) {
  section.content {
    margin-left: calc(50% - 900px + 125px); /* Adjust centering for larger screens */
    max-width: 1800px; /* Slightly larger max width */
  }
}

/* Fix for items grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 0.5rem;
  margin: 0 auto;
  max-width: 100%;
}

/* Fix for items grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 0.5rem;
  margin: 0 auto;
  max-width: 100%;
}

/* 2K+ screens - 5 columns with better proportions */
@media (min-width: 2000px) {
  .items-grid {
    grid-template-columns: repeat(5, minmax(260px, 1fr));
    gap: 2rem; /* Increased gap for better spacing */
  }
  
  /* Better card proportions for 5-column layout */
  .item-card {
    min-height: 350px; /* Better height for wider cards */
    min-width: 290px; /* Changed from 350px to match grid template */
    width: 100%; /* Ensure it takes full grid cell width */
  }
  
  .item-image-container {
    height: 200px; /* Slightly reduced height for better proportions */
  }
  
  .item-image {
    height: 200px;
  }
}
/* Tablet landscape - 3 columns with better card proportions */
@media (min-width: 900px) and (max-width: 1199px) {
  .items-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 1.25rem;
  }
  
  /* Better card proportions for tablets */
  .item-card {
    min-height: 360px; /* Better height for tablet cards */
  }
  
  .item-image-container {
    height: 180px; /* Better proportion for tablet images */
  }
  
  .item-image {
    height: 180px;
  }
  
  .item-title {
    font-size: 1.05rem;
  }
}

/* Tablet portrait - 2 columns with improved proportions */
@media (min-width: 768px) and (max-width: 899px) {
  .items-grid {
    grid-template-columns: repeat(2, minmax(230px, 1fr));
    gap: 1.25rem;
  }
  
  /* Even better proportions for tablet portrait */
  .item-card {
    min-height: 380px; /* Good height for 2-column layout */
  }
  
  .item-image-container {
    height: 190px; /* Good image proportion */
  }
  
  .item-image {
    height: 190px;
  }
  
  .item-title {
    font-size: 1.1rem;
  }
  
  .item-description {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

/* Mobile-specific improvements */
@media (max-width: 767px) {
  /* Mobile - 1 column with larger height */
  .items-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  /* Increase mobile listing height */
  .item-card {
    min-height: 380px;
  }
  
  /* Larger images on mobile */
  .item-image-container {
    height: 220px;
  }
  
  .item-image {
    height: 220px;
    object-fit: cover;
    width: 100%;
  }
  
  /* Adjust text sizing for better mobile readability */
  .item-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .item-description {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }
  
  .item-lf {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--accent-color);
      margin-bottom: 1rem;
    }
  
  .item-footer {
    margin-top: auto;
    padding-top: 0.5rem;
  }
  
  /* Increase mobile sidebar height slightly */
  .mobile-sidebar {
    padding: 0.85rem 0 0.65rem 0;
  }
}

/* Extra small mobile devices */
@media (max-width: 380px) {
  .item-card {
    min-height: 360px;
  }
  
  .item-image-container {
    height: 200px;
  }
  
  .item-image {
    height: 200px;
  }
  
  section.content {
    padding: 0.75rem 0.5rem 85px 0.5rem;
  }
}

/* Fix for boost timer placement */
.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.item-time {
  font-size: 0.8rem;
  color: var(--item-details);
  white-space: nowrap;
}



/* Responsive adjustments for the footer */
@media (max-width: 768px) {
  .item-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .item-time, .boost-timer {
    font-size: 0.75rem;
  }
}

/* For very small screens */
@media (max-width: 380px) {
  .item-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Add to your existing CSS */
.loading-indicator {
  text-align: center;
  padding: 2rem;
  color: var(--item-details);
  grid-column: 1 / -1;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.end-of-results {
  text-align: center;
  padding: 2rem;
  color: var(--item-details);
  grid-column: 1 / -1;
  font-style: italic;
}


/* ===== DROPDOWN COMPLETE ALIGNMENT FIX ===== */
.listing-dropdown-wrapper {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 10 !important;
  display: block !important;
}

.listing-dropdown-toggle {
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px);
  border: none !important;
  font-size: 1.1rem !important;
  cursor: pointer !important;
  color: var(--text) !important;
  padding: 6px !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  margin: 0 !important;
}

.listing-dropdown-toggle:hover {
  background: rgba(0, 0, 0, 0.5) !important;
  transform: scale(1.1) !important;
}

.listing-dropdown-menu {
  position: absolute !important;
  top: 38px !important; /* Position directly below the toggle button */
  right: 0 !important;
  background: var(--dropdown-bg) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  padding: 0.5rem 0 !important;
  min-width: 180px !important;
  z-index: 1000 !important;
  display: none !important;
  border: 1px solid var(--border) !important;
  transform: none !important;
  margin: 0 !important;
  /* NEW: Ensure dropdown extends fully */
  width: max-content !important;
  left: auto !important;
}

.listing-dropdown-menu.open {
  display: block !important;
}

.listing-dropdown-menu button {
  width: 100% !important;
  padding: 0.75rem 1.25rem !important;
  text-align: left !important;
  background: none !important;
  border: none !important;
  color: var(--text) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  font-size: 0.95rem !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
  border-radius: 0 !important;
  min-height: auto !important;
  line-height: normal !important;
  /* NEW: Ensure buttons extend fully */
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

.listing-dropdown-menu button:hover {
  background: var(--bubble-hover-bg) !important;
  color: var(--nav-link-hover) !important;
}

.listing-dropdown-menu button i {
  width: 18px !important;
  text-align: center !important;
  font-size: 0.95rem !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

/* Remove any transform or positioning that might be interfering */
.listing-dropdown-wrapper * {
  transform: none !important;
  left: auto !important;
  bottom: auto !important;
}

/* Ensure the dropdown is properly aligned with the three-dot icon */
.item-card .listing-dropdown-wrapper {
  right: 10px !important;
  top: 10px !important;
}

/* Override any inline styles from JavaScript */
div[style*="position"], 
button[style*="position"],
div[style*="top"],
button[style*="top"],
div[style*="right"],
button[style*="right"] {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
}

/* NEW: Fix for Font Awesome icons */
.fa, .fas, .far {
  display: inline-block !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
  width: 1em !important;
  height: 1em !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
}

/* ===== DROPDOWN COMPLETE ALIGNMENT FIX ===== */
.listing-dropdown-wrapper {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 10 !important;
  display: block !important;
}

.listing-dropdown-toggle {
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px);
  border: none !important;
  font-size: 1.1rem !important;
  cursor: pointer !important;
  color: var(--text) !important;
  padding: 6px !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  margin: 0 !important;
}

.listing-dropdown-toggle:hover {
  background: rgba(0, 0, 0, 0.5) !important;
  transform: scale(1.1) !important;
}

.listing-dropdown-menu {
  position: absolute !important;
  top: 38px !important;
  right: 0 !important;
  background: var(--dropdown-bg) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  padding: 0.5rem 0 !important;
  min-width: 180px !important;
  z-index: 1000 !important;
  display: none !important;
  border: 1px solid var(--border) !important;
  transform: none !important;
  margin: 0 !important;
  /* Force full width */
  width: max-content !important;
  left: auto !important;
}

.listing-dropdown-menu.open {
  display: block !important;
}

/* Specific targeting for listing dropdown buttons */
.listing-dropdown-menu button {
  width: 100% !important;
  padding: 0.75rem 1.25rem !important;
  text-align: left !important;
  background: none !important;
  border: none !important;
  color: var(--text) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  font-size: 0.95rem !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
  border-radius: 0 !important;
  min-height: auto !important;
  line-height: normal !important;
  /* Ensure full width */
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

.listing-dropdown-menu button:hover {
  background: var(--bubble-hover-bg) !important;
  color: var(--nav-link-hover) !important;
}

.listing-dropdown-menu button i {
  width: 18px !important;
  text-align: center !important;
  font-size: 0.95rem !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

/* Override any conflicting styles */
.item-card .listing-dropdown-wrapper,
.item-card .listing-dropdown-menu,
.item-card .listing-dropdown-menu button {
  all: unset !important;
}

.item-card .listing-dropdown-wrapper {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 10 !important;
  display: block !important;
}

.item-card .listing-dropdown-menu {
  position: absolute !important;
  top: 38px !important;
  right: 0 !important;
  background: var(--dropdown-bg) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  padding: 0.5rem 0 !important;
  min-width: 180px !important;
  z-index: 1000 !important;
  display: none !important;
  border: 1px solid var(--border) !important;
  width: max-content !important;
}

.item-card .listing-dropdown-menu.open {
  display: block !important;
}

.item-card .listing-dropdown-menu button {
  width: 100% !important;
  padding: 0.75rem 1.25rem !important;
  text-align: left !important;
  background: none !important;
  border: none !important;
  color: var(--text) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  font-size: 0.95rem !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

.item-card .listing-dropdown-menu button:hover {
  background: var(--bubble-hover-bg) !important;
  color: var(--nav-link-hover) !important;
}

/* Add these styles to your existing CSS */
.listing-dropdown-menu button i {
  width: 18px !important;
  text-align: center !important;
  font-size: 0.95rem !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  transition: color 0.2s ease !important;
}

/* Red for delete button */
.listing-dropdown-menu .delete-listing-btn i {
  color: #dc2626 !important; /* Red-600 */
}

.listing-dropdown-menu .delete-listing-btn:hover i {
  color: #b91c1c !important; /* Red-700 */
}

/* Blue for edit button */
.listing-dropdown-menu .edit-listing-btn i {
  color: #2563eb !important; /* Blue-600 */
}

.listing-dropdown-menu .edit-listing-btn:hover i {
  color: #1d4ed8 !important; /* Blue-700 */
}

/* Yellow for boost button */
.listing-dropdown-menu .boost-listing-btn i {
  color: #d97706 !important; /* Yellow-600/Amber */
}

.listing-dropdown-menu .boost-listing-btn:hover i {
  color: #b45309 !important; /* Yellow-700/Amber */
}

/* Other button colors */
.listing-dropdown-menu .report-listing-btn i {
  color: #8b5cf6 !important; /* Purple */
}

.listing-dropdown-menu .approve-listing-btn i {
  color: #059669 !important; /* Green */
}

.listing-dropdown-menu .reject-listing-btn i {
  color: #dc2626 !important; /* Red */
}

   /* Enhanced Boost Modal Styles */
    .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: 10000;
      backdrop-filter: blur(5px);
      padding: 20px;
      box-sizing: border-box;
      overflow-y: auto;
    }

    .modal-content {
      background: var(--card-bg);
      border-radius: 16px;
      width: 100%;
      max-width: 800px;
      max-height: 90vh;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
      overflow: hidden;
      border: 1px solid var(--border);
      animation: modalSlideIn 0.3s ease-out;
      display: flex;
      flex-direction: column;
    }

    @keyframes modalSlideIn {
      from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .modal-header {
      background: var(--accent-color);
      color: white;
      padding: 1.5rem 2rem;
      position: relative;
      flex-shrink: 0;
    }

    .modal-title {
      margin: 0;
      font-size: 1.5rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .modal-title i {
      color: var(--boosted-color);
    }

    .close-modal {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1.2rem;
      transition: all 0.2s ease;
      z-index: 10;
    }

    .close-modal:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: rotate(90deg);
    }

    .boost-confirm-content {
      padding: 2rem;
      overflow-y: auto;
      flex: 1;
    }

    .boost-confirm-content > p {
      font-size: 1.1rem;
      margin-bottom: 2rem;
      text-align: center;
      color: var(--text);
    }

    .boost-tier-options {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .boost-tier-option {
      background: var(--bg);
      border-radius: 12px;
      padding: 1.5rem;
      text-align: center;
      border: 2px solid transparent;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      position: relative;
      overflow: hidden;
    }

    .boost-tier-option::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
    }

    .boost-tier-option.tier1::before {
      background: linear-gradient(90deg, #FFD700, #FFC400);
    }

    .boost-tier-option.tier2::before {
      background: linear-gradient(90deg, #C0C0C0, #A8A8A8);
    }

    .boost-tier-option.tier3::before {
      background: linear-gradient(90deg, #CD7F32, #B56C23);
    }

    .boost-tier-option:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
      border-color: var(--accent-color);
    }

    .boost-tier-option h4 {
      margin-top: 0;
      margin-bottom: 1rem;
      font-size: 1.3rem;
      font-weight: 700;
    }

    .boost-tier-option.tier1 h4 {
      color: #D4AF37;
    }

    .boost-tier-option.tier2 h4 {
      color: #C0C0C0;
    }

    .boost-tier-option.tier3 h4 {
      color: #CD7F32;
    }

    .boost-cost {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 1.4rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
      padding: 0.75rem;
      border-radius: 8px;
      background: rgba(139, 92, 246, 0.1);
    }

    .boost-cost i {
      color: gold;
    }

    .boost-tier-option ul {
      list-style: none;
      padding: 0;
      margin: 0 0 1.5rem 0;
      text-align: left;
    }

    .boost-tier-option li {
      padding: 0.5rem 0;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .boost-tier-option li::before {
      content: '✓';
      color: var(--accent-color);
      font-weight: bold;
    }

    .select-tier-btn {
      width: 100%;
      padding: 0.875rem;
      border: none;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      font-size: 1rem;
    }

    .tier1 .select-tier-btn {
      background: linear-gradient(90deg, #FFD700, #FFC400);
      color: #000;
    }

    .tier2 .select-tier-btn {
      background: linear-gradient(90deg, #C0C0C0, #A8A8A8);
      color: #000;
    }

    .tier3 .select-tier-btn {
      background: linear-gradient(90deg, #CD7F32, #B56C23);
      color: #fff;
    }

    .select-tier-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .boost-confirm-btns {
      display: flex;
      justify-content: center;
      gap: 1rem;
      flex-shrink: 0;
    }

    .btn {
      padding: 0.875rem 1.5rem;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      border: none;
      font-size: 1rem;
    }

    .btn-secondary {
      background: var(--bubble-bg);
      color: var(--text);
    }

    .btn-secondary:hover {
      background: var(--bubble-hover-bg);
    }

    .btn-primary {
      background: var(--accent-color);
      color: white;
    }

    .btn-primary:hover {
      background: var(--nav-link-hover);
      transform: translateY(-2px);
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
      .modal-overlay {
        padding: 10px;
        align-items: flex-start;
      }
      
      .modal-content {
        max-height: 95vh;
        margin-top: 20px;
        margin-bottom: 20px;
      }
      
      .boost-tier-options {
        grid-template-columns: 1fr;
      }
      
      .modal-header {
        padding: 1.25rem 1.5rem;
      }
      
      .boost-confirm-content {
        padding: 1.5rem;
      }
      
      .boost-confirm-btns {
        flex-direction: column;
      }
      
      .modal-title {
        font-size: 1.3rem;
      }
      
      .close-modal {
        top: 1rem;
        right: 1rem;
      }
    }

    @media (max-width: 480px) {
      .modal-header {
        padding: 1rem 1.25rem;
      }
      
      .boost-confirm-content {
        padding: 1.25rem;
      }
      
      .boost-tier-option {
        padding: 1.25rem;
      }
      
      .boost-cost {
        font-size: 1.2rem;
      }
    }

    /* Dark mode adjustments */
    body.dark .boost-tier-option {
      background: var(--card-bg);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    body.dark .boost-cost {
      background: rgba(139, 92, 246, 0.15);
    }

    /* ===== AUTH MODAL STYLES ===== */
.auth-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;
  justify-content: center !important;
  align-items: center !important;
  z-index: 10000 !important;
  backdrop-filter: blur(5px) !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
}

.auth-modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.auth-modal-content {
  background: var(--card-bg) !important;
  border-radius: 16px !important;
  width: 100% !important;
  max-width: 450px !important;
  max-height: 90vh !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden !important;
  border: 1px solid var(--border) !important;
  animation: modalSlideIn 0.3s ease-out !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

@keyframes modalSlideIn {
  from {
    opacity: 0 !important;
    transform: translateY(-30px) scale(0.95) !important;
  }
  to {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }
}

.auth-modal-header {
  background: var(--accent-color) !important;
  color: white !important;
  padding: 1.5rem 2rem !important;
  position: relative !important;
  flex-shrink: 0 !important;
  text-align: center !important;
}

.auth-modal-title {
  margin: 0 !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.auth-modal-title i {
  color: var(--boosted-color) !important;
}

.auth-close-modal {
  position: absolute !important;
  top: 1.5rem !important;
  right: 1.5rem !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  color: white !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 1.2rem !important;
  transition: all 0.2s ease !important;
  z-index: 10 !important;
}

.auth-close-modal:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: rotate(90deg) !important;
}

.auth-modal-body {
  padding: 2rem !important;
  overflow-y: auto !important;
  flex: 1 !important;
}

.auth-tabs {
  display: flex !important;
  margin-bottom: 1.5rem !important;
  border-bottom: 1px solid var(--border) !important;
}

.auth-tab {
  flex: 1 !important;
  padding: 0.75rem !important;
  text-align: center !important;
  background: none !important;
  border: none !important;
  color: var(--text) !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  position: relative !important;
}

.auth-tab.active {
  color: var(--accent-color) !important;
}

.auth-tab.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: -1px !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: var(--accent-color) !important;
}

.auth-form {
  display: none !important;
}

.auth-form.active {
  display: block !important;
}

.form-group {
  margin-bottom: 1.25rem !important;
}

.form-group label {
  display: block !important;
  margin-bottom: 0.5rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
}

.form-control {
  width: 100% !important;
  padding: 0.875rem 1rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-size: 1rem !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.form-control:focus {
  outline: none !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

.form-error {
  color: var(--error-color) !important;
  font-size: 0.85rem !important;
  margin-top: 0.5rem !important;
  display: none !important;
}

.form-error.show {
  display: block !important;
}

.age-verification {
  margin: 1.5rem 0 !important;
  padding: 1rem !important;
  background: var(--bubble-bg) !important;
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
}

.checkbox-group {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  margin-top: 1rem !important;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem !important;
  flex-shrink: 0 !important;
}

.checkbox-group label {
  font-weight: normal !important;
  margin-bottom: 0 !important;
  line-height: 1.4 !important;
}

.auth-divider {
  display: flex !important;
  align-items: center !important;
  margin: 1.5rem 0 !important;
  color: var(--item-details) !important;
}

.auth-divider::before,
.auth-divider::after {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: var(--border) !important;
}

.auth-divider span {
  padding: 0 1rem !important;
  font-size: 0.9rem !important;
}

.social-auth {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  margin-bottom: 1.5rem !important;
}

.social-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  padding: 0.875rem 1.5rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.social-btn.google {
  background: white !important;
  color: #757575 !important;
  border: 1px solid #ddd !important;
}

.social-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.social-btn.google:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.auth-form-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 1rem !important;
  margin-top: 1.5rem !important;
}

.btn {
  padding: 0.875rem 1.5rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border: none !important;
  font-size: 1rem !important;
  min-width: 120px !important;
}

.btn-secondary {
  background: var(--bubble-bg) !important;
  color: var(--text) !important;
}

.btn-secondary:hover {
  background: var(--bubble-hover-bg) !important;
}

.btn-primary {
  background: var(--accent-color) !important;
  color: white !important;
}

.btn-primary:hover {
  background: var(--nav-link-hover) !important;
  transform: translateY(-2px) !important;
}

.auth-footer {
  text-align: center !important;
  margin-top: 1.5rem !important;
  color: var(--item-details) !important;
  font-size: 0.9rem !important;
}

.auth-footer a {
  color: var(--accent-color) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.auth-footer a:hover {
  text-decoration: underline !important;
}

/* Success/Error notifications */
.auth-notification {
  padding: 0.75rem 1rem !important;
  border-radius: 8px !important;
  margin-bottom: 1rem !important;
  display: none !important;
}

.auth-notification.error {
  background: rgba(248, 113, 113, 0.1) !important;
  border: 1px solid var(--error-color) !important;
  color: var(--error-color) !important;
}

.auth-notification.success {
  background: rgba(74, 222, 128, 0.1) !important;
  border: 1px solid var(--success-color) !important;
  color: var(--success-color) !important;
}

.auth-notification.show {
  display: block !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .auth-modal-overlay {
    padding: 10px !important;
    align-items: flex-start !important;
  }
  
  .auth-modal-content {
    max-height: 95vh !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
  
  .auth-modal-header {
    padding: 1.25rem 1.5rem !important;
  }
  
  .auth-modal-body {
    padding: 1.5rem !important;
  }
  
  .auth-modal-title {
    font-size: 1.3rem !important;
  }
  
  .auth-close-modal {
    top: 1rem !important;
    right: 1rem !important;
  }
}

@media (max-width: 480px) {
  .auth-modal-header {
    padding: 1rem 1.25rem !important;
  }
  
  .auth-modal-body {
    padding: 1.25rem !important;
  }
  
  .auth-form-actions {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .btn {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
  }
  
  .social-btn {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
  }
  
  .auth-tab {
    padding: 0.5rem !important;
    font-size: 0.9rem !important;
  }
}

/* ===== POST LISTING MODAL CSS WITH !IMPORTANT ===== */
#postListingModal.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;
  justify-content: center !important;
  align-items: center !important;
  z-index: 1000 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
  backdrop-filter: none !important;
  padding: 0 !important;
}

#postListingModal.modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

#postListingModal .modal-content {
  background: var(--bg) !important;
  border-radius: 12px !important;
  width: 90% !important;
  max-width: 600px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 2rem !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(20px) !important;
  transition: transform 0.3s ease !important;
  border: none !important;
  animation: none !important;
  display: block !important;
}

#postListingModal.modal-overlay.active .modal-content {
  transform: translateY(0) !important;
}

#postListingModal .modal-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 1.5rem !important;
  background: transparent !important;
  padding: 0 !important;
  position: static !important;
}

#postListingModal .modal-title {
  font-size: 1.5rem !important;
  margin: 0 !important;
  color: var(--text) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
}

#postListingModal .modal-title i {
  display: none !important;
}

#postListingModal .close-modal {
  background: none !important;
  border: none !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  color: var(--nav-link) !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
}

#postListingModal .close-modal:hover {
  color: var(--nav-link-hover) !important;
  background: transparent !important;
  transform: none !important;
}

#postListingModal .form-group {
  margin-bottom: 1.5rem !important;
}

#postListingModal .form-group label {
  display: block !important;
  margin-bottom: 0.5rem !important;
  font-weight: 500 !important;
  color: var(--text) !important;
}

#postListingModal .form-control {
  width: 100% !important;
  padding: 0.75rem !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  background: var(--card-bg) !important;
  color: var(--text) !important;
  font-family: inherit !important;
  transition: border-color 0.2s !important;
  box-sizing: border-box !important;
}

#postListingModal .form-control:focus {
  outline: none !important;
  border-color: var(--category-accent) !important;
  box-shadow: none !important;
}

#postListingModal .form-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 1rem !important;
  margin-top: 2rem !important;
  padding: 0 !important;
}

#postListingModal .btn {
  padding: 0.75rem 1.5rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  min-width: auto !important;
  font-size: 1rem !important;
}

#postListingModal .btn-primary {
  background: var(--category-accent) !important;
  color: white !important;
  border: none !important;
}

#postListingModal .btn-primary:hover {
  opacity: 0.9 !important;
  transform: none !important;
  background: var(--category-accent) !important;
}

#postListingModal .btn-secondary {
  background: var(--card-bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

#postListingModal .btn-secondary:hover {
  background: var(--bubble-hover-bg) !important;
  transform: none !important;
}

#postListingModal .checkbox-group {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  margin-bottom: 1rem !important;
}

#postListingModal .checkbox-group input {
  margin-top: 0.25rem !important;
}

#postListingModal .checkbox-group label {
  font-size: 0.9rem !important;
  color: var(--nav-link) !important;
  font-weight: normal !important;
}

#postListingModal .age-verification {
  background: rgba(255, 74, 74, 0.1) !important;
  padding: 1rem !important;
  border-radius: 8px !important;
  margin-bottom: 1.5rem !important;
  border-left: 3px solid var(--nav-link-hover) !important;
}

#postListingModal .age-verification h4 {
  margin-top: 0 !important;
  color: var(--nav-link-hover) !important;
  font-size: 1rem !important;
}

#postListingModal .age-verification p {
  margin-bottom: 0.5rem !important;
  color: var(--text) !important;
}

/* Image Upload Styles */
#postListingModal .image-upload-container {
  margin-top: 0.5rem !important;
}

#postListingModal .upload-area {
  border: 2px dashed var(--border) !important;
  border-radius: 8px !important;
  padding: 2rem !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  background: rgba(255,255,255,0.05) !important;
}

#postListingModal .upload-area:hover {
  border-color: var(--category-accent) !important;
  background: rgba(187, 51, 255, 0.05) !important;
}

#postListingModal .upload-area i {
  font-size: 2rem !important;
  color: var(--nav-link) !important;
  margin-bottom: 0.5rem !important;
}

#postListingModal .upload-area p {
  margin: 0 !important;
  color: var(--nav-link) !important;
}

#postListingModal .upload-hint {
  display: block !important;
  margin-top: 0.5rem !important;
  color: var(--nav-link) !important;
  opacity: 0.7 !important;
  font-size: 0.85rem !important;
}

#postListingModal .image-preview {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin-top: 1rem !important;
}

#postListingModal .preview-image {
  position: relative !important;
  width: 80px !important;
  height: 80px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

#postListingModal .preview-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

#postListingModal .remove-image {
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;
  background: rgba(0,0,0,0.7) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 0.7rem !important;
}

/* Modal Tag Styles */
#postListingModal .filter-option.tag {
  padding: 0.4rem 0.8rem !important;
  border-radius: 16px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  border: 2px solid !important;
  background: transparent !important;
  transition: all 0.2s ease !important;
}

#postListingModal .filter-option.tag-fetish {
  border-color: #ff3399 !important;
  color: #ff3399 !important;
}

#postListingModal .filter-option.tag-bundle {
  border-color: #9966ff !important;
  color: #9966ff !important;
}

#postListingModal .filter-option.tag-feet {
  border-color: #ff5050 !important;
  color: #ff5050 !important;
}

#postListingModal .filter-option.tag-video {
  border-color: #ffb266 !important;
  color: #ffb266 !important;
}

#postListingModal .filter-option.tag-custom {
  border-color: #9c27b0 !important;
  color: #9c27b0 !important;
}

#postListingModal .filter-option.tag-cosplay {
  border-color: #ff5722 !important;
  color: #ff5722 !important;
}

#postListingModal .filter-option.tag-gaming {
  border-color: #2196f3 !important;
  color: #2196f3 !important;
}

/* Filled state when selected/checked */
#postListingModal .filter-option.tag-fetish input:checked + span,
#postListingModal .filter-option.tag-fetish.selected {
  background: #ff3399 !important;
  color: white !important;
}

#postListingModal .filter-option.tag-bundle input:checked + span,
#postListingModal .filter-option.tag-bundle.selected {
  background: #9966ff !important;
  color: white !important;
}

#postListingModal .filter-option.tag-feet input:checked + span,
#postListingModal .filter-option.tag-feet.selected {
  background: #ff5050 !important;
  color: white !important;
}

#postListingModal .filter-option.tag-video input:checked + span,
#postListingModal .filter-option.tag-video.selected {
  background: #ffb266 !important;
  color: #333 !important;
}

#postListingModal .filter-option.tag-custom input:checked + span,
#postListingModal .filter-option.tag-custom.selected {
  background: #9c27b0 !important;
  color: white !important;
}

#postListingModal .filter-option.tag-cosplay input:checked + span,
#postListingModal .filter-option.tag-cosplay.selected {
  background: #ff5722 !important;
  color: white !important;
}

#postListingModal .filter-option.tag-gaming input:checked + span,
#postListingModal .filter-option.tag-gaming.selected {
  background: #2196f3 !important;
  color: white !important;
}

/* Hover effects */
#postListingModal .filter-option.tag:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

/* Hide the checkboxes but keep them functional */
#postListingModal .filter-option input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

#postListingModal .filter-option span {
  pointer-events: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #postListingModal .modal-content {
    width: 95% !important;
    padding: 1.5rem !important;
  }
  
  #postListingModal .form-actions {
    flex-direction: column !important;
  }
  
  #postListingModal .btn {
    width: 100% !important;
  }
}

/* ===== EDIT MODAL CSS WITH !IMPORTANT ===== */
#editListingModal.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;
  justify-content: center !important;
  align-items: center !important;
  z-index: 1000 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
}

#editListingModal.modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

#editListingModal .modal-content {
  background: var(--bg) !important;
  border-radius: 12px !important;
  width: 90% !important;
  max-width: 600px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 2rem !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(20px) !important;
  transition: transform 0.3s ease !important;
}

#editListingModal.modal-overlay.active .modal-content {
  transform: translateY(0) !important;
}

#editListingModal .modal-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 1.5rem !important;
}

#editListingModal .modal-title {
  font-size: 1.5rem !important;
  margin: 0 !important;
  color: var(--text) !important;
}

#editListingModal .close-modal {
  background: none !important;
  border: none !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  color: var(--nav-link) !important;
}

#editListingModal .close-modal:hover {
  color: var(--nav-link-hover) !important;
}

#editListingModal .form-group {
  margin-bottom: 1.5rem !important;
}

#editListingModal .form-group label {
  display: block !important;
  margin-bottom: 0.5rem !important;
  font-weight: 500 !important;
  color: var(--text) !important;
}

#editListingModal .form-control {
  width: 100% !important;
  padding: 0.75rem !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  background: var(--card-bg) !important;
  color: var(--text) !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
}

#editListingModal .form-control:focus {
  outline: none !important;
  border-color: var(--category-accent) !important;
}

#editListingModal .form-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 1rem !important;
  margin-top: 2rem !important;
}

#editListingModal .btn {
  padding: 0.75rem 1.5rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

#editListingModal .btn-primary {
  background: var(--category-accent) !important;
  color: white !important;
  border: none !important;
}

#editListingModal .btn-primary:hover {
  opacity: 0.9 !important;
}

#editListingModal .btn-secondary {
  background: var(--card-bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

#editListingModal .btn-secondary:hover {
  background: var(--bubble-hover-bg) !important;
}

/* Fix for mobile sidebar links - add this to your existing CSS */
.mobile-sidebar-link {
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
}

.mobile-sidebar-link span {
  display: inline-block !important;
}

/* Dark mode toggle inside settings dropdown */
.dark-mode-toggle-container {
  padding: 0.75rem 1rem;
  margin: 0;
  border-top: 1px solid var(--border); /* Keep only top border */
  /* Remove border-bottom */
}

.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem 0;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.dark-mode-toggle:hover {
  background-color: var(--bubble-hover-bg);
}

.dark-mode-toggle i {
  font-size: 1rem;
  color: var(--accent-color);
  margin-right: 0.75rem;
}

.dark-mode-text {
  flex: 1;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
}

.dark-mode-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: var(--bubble-bg);
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

body.dark .dark-mode-switch {
  background-color: var(--accent-color);
}

.dark-mode-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

body.dark .dark-mode-slider {
  transform: translateX(20px);
}

/* Remove the old standalone dark mode toggle */
.dark-mode-toggle:not(.dark-mode-toggle-container .dark-mode-toggle) {
  display: none;
}

/* Settings menu adjustments for the new toggle */
.settings-menu {
  width: 220px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.settings-menu a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
  margin: 0;
  box-sizing: border-box;
}

.settings-menu a i {
  margin-right: 0.75rem;
  width: 16px;
  text-align: center;
}

.settings-menu a:hover {
  background-color: var(--bubble-hover-bg);
}

.signout-link {
  color: #e74c3c !important;
  border-top: 1px solid var(--border);
}

.signout-link:hover {
  background-color: rgba(231, 76, 60, 0.1) !important;
}

/* Video preview styles */
.video-preview {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}

.video-overlay i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* Video hover styles */
.video-preview {
  transition: transform 0.3s ease;
}

.item-card:hover .video-preview {
  transform: scale(1.05);
}

/* Premium features styles */
.premium-feature-note {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  padding: 0.75rem;
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--accent-color);
}

.premium-feature-note i {
  margin-right: 0.5rem;
}

.file-type-restriction {
  font-size: 0.8rem;
  color: var(--item-details);
  margin-top: 0.25rem;
}

.file-size-warning {
  color: var(--warning-color);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.file-size-warning.show {
  display: block;
}

/* Video preview styles */
.video-preview {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}

.video-overlay i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* Video hover styles - EXACTLY like profile.html */
.item-card:hover .video-preview video {
  transform: scale(1.05);
}

/* Ensure images are visible immediately */
.item-image {
  opacity: 1 !important;
}

.item-image.loaded {
  opacity: 1 !important;
}

/* Add this right after your existing video height fix */
@supports not (aspect-ratio: 1 / 1) {
  .item-image-container {
    height: 250px;
  }
}

@supports not (object-fit: cover) {
  .item-image-container img,
  .item-image-container video {
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Keep your existing media query but add fallback */
@media (min-width: 1920px) and (max-width: 1920px) {
  .item-card { min-height: 420px; }
  .item-image-container { height: 180px; }
  
  @supports not (aspect-ratio: 1 / 1) {
    .item-image-container { 
      height: 180px;
    }
  }
}


/* Fix for edit modal form actions positioning */
#editListingModal .modal-content {
  padding: 2rem !important;
}

#editListingModal .modal-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 1.5rem !important;
  padding: 0 !important;
  background: transparent !important;
  position: static !important;
}

#editListingModal .modal-title {
  font-size: 1.5rem !important;
  margin: 0 !important;
  color: var(--text) !important;
}

#editListingModal .close-modal {
  background: none !important;
  border: none !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  color: var(--nav-link) !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#editListingModal .close-modal:hover {
  color: var(--nav-link-hover) !important;
  background: transparent !important;
}

#editListingModal .form-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 1rem !important;
  margin-top: 2rem !important;
  padding: 0 !important;
}

#editListingModal .btn {
  padding: 0.75rem 1.5rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  min-width: auto !important;
  font-size: 1rem !important;
}

#editListingModal .btn-primary {
  background: var(--category-accent) !important;
  color: white !important;
  border: none !important;
}

#editListingModal .btn-primary:hover {
  opacity: 0.9 !important;
  transform: none !important;
  background: var(--category-accent) !important;
}

#editListingModal .btn-secondary {
  background: var(--card-bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

#editListingModal .btn-secondary:hover {
  background: var(--bubble-hover-bg) !important;
  transform: none !important;
}

/* ===== REPORT MODAL STYLES ===== */
.char-counter {
  text-align: right;
  font-size: 0.8rem;
  color: var(--item-details);
  margin-top: 0.25rem;
}

.char-counter.warning {
  color: var(--warning-color);
}

.char-counter.error {
  color: var(--danger-color);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
}

.checkbox-group label {
  margin: 0;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Form actions - proper spacing */
.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.form-actions .btn {
  min-width: 100px;
}

/* Report confirmation styles */
.report-confirmation {
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.report-confirmation i {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 1rem;
  display: block;
}

.report-confirmation h4 {
  color: var(--success-color);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.report-confirmation p {
  color: var(--item-details);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  max-width: 300px;
}

.report-confirmation .btn {
  margin-top: 0.5rem;
}

/* Modal header fixes */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 8px 8px 0 0;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--nav-link);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-modal:hover {
  background: var(--bubble-hover-bg);
  color: var(--nav-link-hover);
}

/* Modal body padding */
.modal-body {
  padding: 1.5rem;
}

/* Form group spacing */
.form-group {
  margin-bottom: 1.25rem;
}

.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-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--item-details);
}

/* Error message styling */
.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  padding: 0.75rem;
  color: var(--danger-color);
  font-size: 0.9rem;
  margin: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Reduced from 0.75rem */
  text-decoration: none;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent-color);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0px;
  text-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
  line-height: 1;
  margin: 0;
}

#boostListing,
#boostListing + label {
  display: none;
}
#postListingModal .filter-option.tag-skin {
  border-color: #ffc107 !important;
  color: #ffc107 !important;
}

#postListingModal .filter-option.tag-skin input:checked + span,
#postListingModal .filter-option.tag-skin.selected {
  background: #ffc107 !important;
  color: #000 !important;
}


/* Skin tag */
.tag-skin {
  background: rgba(255, 193, 7, 0.15) !important;
  color: #ffc107 !important;
  border: 1px solid #ffc107 !important;
}
.tag[data-tag="skin"] {
  background: rgba(255, 193, 7, 0.15) !important;
  color: #ffc107 !important;
  border: 1px solid #ffc107 !important;
}

/* Fetish tag */
.tag-fetish {
  background: rgba(255, 51, 153, 0.15) !important;
  color: #ff3399 !important;
  border: 1px solid #ff3399 !important;
}
.tag[data-tag="fetish"] {
  background: rgba(255, 51, 153, 0.15) !important;
  color: #ff3399 !important;
  border: 1px solid #ff3399 !important;
}

/* Bundle tag */
.tag-bundle {
  background: rgba(153, 102, 255, 0.15) !important;
  color: #9966ff !important;
  border: 1px solid #9966ff !important;
}
.tag[data-tag="bundle"] {
  background: rgba(153, 102, 255, 0.15) !important;
  color: #9966ff !important;
  border: 1px solid #9966ff !important;
}

/* Feet tag */
.tag-feet {
  background: rgba(255, 80, 80, 0.15) !important;
  color: #ff5050 !important;
  border: 1px solid #ff5050 !important;
}
.tag[data-tag="feet"] {
  background: rgba(255, 80, 80, 0.15) !important;
  color: #ff5050 !important;
  border: 1px solid #ff5050 !important;
}

/* Video tag */
.tag-video {
  background: rgba(255, 178, 102, 0.15) !important;
  color: #ffb266 !important;
  border: 1px solid #ffb266 !important;
}
.tag[data-tag="video"] {
  background: rgba(255, 178, 102, 0.15) !important;
  color: #ffb266 !important;
  border: 1px solid #ffb266 !important;
}

/* Custom tag */
.tag-custom {
  background: rgba(156, 39, 176, 0.15) !important;
  color: #9c27b0 !important;
  border: 1px solid #9c27b0 !important;
}
.tag[data-tag="custom"] {
  background: rgba(156, 39, 176, 0.15) !important;
  color: #9c27b0 !important;
  border: 1px solid #9c27b0 !important;
}

/* Cosplay tag */
.tag-cosplay {
  background: rgba(255, 87, 34, 0.15) !important;
  color: #ff5722 !important;
  border: 1px solid #ff5722 !important;
}
.tag[data-tag="cosplay"] {
  background: rgba(255, 87, 34, 0.15) !important;
  color: #ff5722 !important;
  border: 1px solid #ff5722 !important;
}

/* Gaming tag */
.tag-gaming {
  background: rgba(33, 150, 243, 0.15) !important;
  color: #2196f3 !important;
  border: 1px solid #2196f3 !important;
}

.tag[data-tag="gaming"] {
  background: rgba(33, 150, 243, 0.15) !important;
  color: #2196f3 !important;
  border: 1px solid #2196f3 !important;
}


/* Weapon tag */
.tag-weapon {
  background: rgba(77, 184, 255, 0.15) !important;
  color: #4db8ff !important;
  border: 1px solid #4db8ff !important;
}
.tag[data-tag="weapon"] {
  background: rgba(77, 184, 255, 0.15) !important;
  color: #4db8ff !important;
  border: 1px solid #4db8ff !important;
}

/* Fallback for any default tags */
.tag-default {
  background: rgba(158, 158, 158, 0.15) !important;
  color: #9e9e9e !important;
  border: 1px solid #9e9e9e !important;
}

/* Base tag styling */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0.125rem;
  border: 1px solid transparent;
}


/* ===== NOTIFICATION STYLES ===== */
.notifications {
  position: relative;
  margin-right: 0.5rem;
}

.notification-bell {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0.5rem;
  color: var(--nav-link);
  font-size: 1.2rem;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.notification-bell:hover {
  background-color: var(--bubble-hover-bg);
  color: var(--nav-link-hover);
}

.notification-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--nav-link-hover);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.notification-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  width: 350px;
  max-height: 500px;
  background: var(--dropdown-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  display: none;
  z-index: 100;
  overflow: hidden;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.notification-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.mark-all-read {
  background: none;
  border: none;
  color: var(--nav-link-hover);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}

.mark-all-read:hover {
  text-decoration: underline;
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--nav-link-hover);
  transition: all 0.2s ease;
}

.notification-item.unread {
  background: rgba(255,74,74,0.1);
  border-left: 3px solid var(--nav-link-hover);
}

.notification-item:hover {
  background: rgba(255,255,255,0.1);
}

.notification-time {
  font-size: 0.7rem;
  color: var(--nav-link);
  margin-top: 0.25rem;
}

.no-notifications {
  text-align: center;
  padding: 1rem;
  color: var(--nav-link);
  font-style: italic;
}

body.logged-in .notifications {
  display: block !important;
}

/* Show dropdown on hover */
.notifications:hover .notification-dropdown {
  display: block;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  .notification-dropdown {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: none;
    height: calc(100vh - 56px);
    border-radius: 0;
    z-index: 1003;
  }
  
  .notifications:hover .notification-dropdown {
    display: none;
  }
  
  /* Mobile-specific trigger */
  .notifications.mobile-open .notification-dropdown {
    display: flex;
    animation: slideInFromRight 0.3s ease-out;
  }
  
  @keyframes slideInFromRight {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }
}

/* Notification list scrollbar styling */
.notification-list::-webkit-scrollbar {
  width: 8px;
}

.notification-list::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
  margin: 4px;
}

.notification-list::-webkit-scrollbar-thumb {
  background: #000000;
  border-radius: 4px;
  border: 1px solid #333333;
}

.notification-list::-webkit-scrollbar-thumb:hover {
  background: #111111;
  border: 1px solid #444444;
}

.notification-list::-webkit-scrollbar-thumb:active {
  background: #222222;
}

/* Firefox support for black scrollbar */
.notification-list {
  scrollbar-width: thin;
  scrollbar-color: #000000 #1a1a1a;
}

/* Dark theme support */
.dark-mode .notification-list::-webkit-scrollbar-track {
  background: #2d2d2d;
}

.dark-mode .notification-list::-webkit-scrollbar-thumb {
  background: #000000;
  border: 1px solid #555555;
}

.dark-mode .notification-list::-webkit-scrollbar-thumb:hover {
  background: #111111;
  border: 1px solid #666666;
}

.dark-mode .notification-list {
  scrollbar-color: #000000 #2d2d2d;
}

/* Limit title to 1 line */
.item-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  max-height: 1.3em;
  white-space: nowrap;
}

/* Limit description to 1 line */
.item-description {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: 1.4em;
  white-space: nowrap;
}

/* Ensure consistent card heights */
.item-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.item-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* Important for flex children */
}

.item-footer {
  margin-top: auto;
}



.item-lf {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--accent-color);
      margin-bottom: 1rem;
    }
