: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;
      --accent-glow: 0 0 8px rgba(139, 92, 246, 0.3);
      --pink-accent: #ff4a8d;
      --purple-accent: #bb33ff;
      --boosted-color: #FFD700;
      --boosted-glow: 0 0 12px rgba(255, 215, 0, 0.4);
      --boosted-tier1: #FFD700;
      --boosted-tier2: #C0C0C0;
      --boosted-tier3: #CD7F32;
      --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);
      --pink-accent: #ff6ba8;
      --purple-accent: #cc66ff;
      --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;
      line-height: 1.6;
    }

    /* ===== 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;
    }

    .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block; /* Removes extra space below image */
}

.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; /* Removes extra line height spacing */
  margin: 0; /* Removes any default margins */
}

    /* 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;
    }

    /* 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;
      }
    }

    /* ===== HERO SECTION ===== */
    .hero {
      text-align: center;
      padding: 6rem 1rem;
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(255, 74, 141, 0.1) 100%);
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M30,10L50,30L70,10L90,30L70,50L90,70L70,90L50,70L30,90L10,70L30,50L10,30L30,10Z" fill="none" stroke="%23bb33ff" stroke-width="0.5" opacity="0.2"/></svg>');
      opacity: 0.05;
      z-index: 0;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 900px;
      margin: 0 auto;
    }

    .hero h1 {
      font-family: 'Press Start 2P', cursive;
      font-size: 2.8rem;
      margin-bottom: 1.5rem;
      color: var(--pink-accent);
      text-shadow: 0 0 10px rgba(255, 74, 141, 0.3);
      line-height: 1.3;
    }

    .hero p {
      font-size: 1.3rem;
      margin-bottom: 2.5rem;
      color: var(--text);
      max-width: 700px;
      margin-left: auto;
      margin-right: auto;
    }

    .hero-buttons {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn {
      padding: 0.75rem 1.5rem;
      border-radius: 50px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s ease;
      border: none;
      font-size: 1rem;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .btn-primary {
      background-color: var(--pink-accent);
      color: white;
      box-shadow: 0 4px 15px rgba(255, 74, 141, 0.3);
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(255, 74, 141, 0.4);
    }

    .btn-outline {
      background: transparent;
      border: 2px solid var(--pink-accent);
      color: var(--pink-accent);
    }

    .btn-outline:hover {
      background-color: var(--pink-accent);
      color: white;
    }

    /* ===== FEATURES SECTION ===== */
    .features {
      padding: 5rem 1rem;
      background-color: var(--bg);
    }

    .features-container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .features h2 {
      text-align: center;
      font-family: 'Press Start 2P', cursive;
      font-size: 1.8rem;
      margin-bottom: 3rem;
      color: var(--purple-accent);
    }

    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
    }

    .feature-card {
      background-color: var(--card-bg);
      border-radius: 12px;
      padding: 2rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      text-align: center;
    }

    .feature-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), var(--accent-glow);
    }

    .feature-icon {
      font-size: 2.5rem;
      margin-bottom: 1.5rem;
      color: var(--pink-accent);
    }

    .feature-card h3 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
      color: var(--purple-accent);
    }

    /* ===== POPULAR TRADES SECTION ===== */
    .popular-trades {
      padding: 5rem 1rem;
      background-color: var(--aside-bg);
    }

    .popular-trades-container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .popular-trades h2 {
      text-align: center;
      font-family: 'Press Start 2P', cursive;
      font-size: 1.8rem;
      margin-bottom: 3rem;
      color: var(--pink-accent);
    }

    .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%;
    }

    .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);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      margin-bottom: 0;
      height: 100%;
      display: flex;
      flex-direction: column;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .item-card.loaded {
      opacity: 1;
      transform: translateY(0);
    }

    .item-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), var(--accent-glow);
      border-color: var(--accent-color);
      cursor: pointer;
    }

    .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);
    }

    .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);
    }

    .item-image-container {
      flex: 0 0 auto;
      height: 180px;
      overflow: hidden;
      position: relative;
    }

    .item-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
      opacity: 0;
    }

    .item-image.loaded {
      opacity: 1;
    }

    .item-card:hover .item-image {
      transform: scale(1.05);
    }

    .item-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding: 1.25rem;
    }

    .item-title {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: var(--text);
      line-height: 1.3;
    }

    .item-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 0.75rem;
    }

    .tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

/* Tag color variants - FIXED VERSION */
.tag-weapon { 
  background: rgba(0, 150, 255, 0.15); 
  color: #4db8ff; 
  border-color: #4db8ff; 
}
.tag-fetish { 
  background: rgba(255, 51, 153, 0.15); 
  color: #ff3399; 
  border-color: #ff3399;
}
.tag-bundle { 
  background: rgba(153, 102, 255, 0.15); 
  color: #9966ff; 
  border-color: #9966ff;
}
.tag-feet { 
  background: rgba(255, 80, 80, 0.15); 
  color: #ff5050; 
  border-color: #ff5050;
}
.tag-video { 
  background: rgba(255, 178, 102, 0.15); 
  color: #ffb266; 
  border-color: #ffb266;
}
.tag-gaming { 
  background: rgba(33, 150, 243, 0.15); 
  color: #2196f3; 
  border-color: #2196f3;
}
.tag-skin { 
  background: rgba(255, 193, 7, 0.15); 
  color: #ffc107; 
  border-color: #ffc107;
}
.tag-nsfw { 
  background: rgba(156, 39, 176, 0.15); 
  color: #9c27b0; 
  border-color: #9c27b0;
}
.tag-custom { 
  background: rgba(156, 39, 176, 0.15); 
  color: #9c27b0; 
  border-color: #9c27b0;
}

/* Hover effects */
.tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}



    .item-description {
      font-size: 0.9rem;
      color: var(--item-details);
      margin-bottom: 0.75rem;
      line-height: 1.4;
      flex: 1;
    }

    .item-lf {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--accent-color);
      margin-bottom: 1rem;
    }

    .item-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: auto;
      padding-top: 0.5rem;
      border-top: 1px solid var(--border);
    }

    .item-seller {
      font-size: 0.8rem;
      color: var(--item-details);
    }

    .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);
    }

   .item-time {
  display: none !important;
}
    .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;
    }

    /* ===== RECENT TRADES SECTION ===== */
    .recent-trades {
      padding: 5rem 1rem;
      background-color: var(--bg);
    }

    .recent-trades-container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .recent-trades h2 {
      text-align: center;
      font-family: 'Press Start 2P', cursive;
      font-size: 1.8rem;
      margin-bottom: 3rem;
      color: var(--purple-accent);
    }

    .trades-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 1.5rem;
    }

    .trade-card {
      background-color: var(--card-bg);
      border-radius: 12px;
      padding: 1.5rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      border-left: 5px solid var(--pink-accent);
      display: flex;
      flex-direction: column;
    }

    .trade-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 1rem;
    }

    .trade-items {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex: 1;
    }

    .trade-arrow {
      color: var(--pink-accent);
      font-weight: bold;
      margin: 0 0.5rem;
    }

    .trade-from, .trade-to {
      font-weight: bold;
      flex: 1;
    }

    .trade-meta {
      font-size: 0.9rem;
      color: var(--item-details);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-top: auto;
    }

    .trade-user {
      font-weight: bold;
      color: var(--purple-accent);
    }

    /* ===== CTA SECTION ===== */
    .cta {
      padding: 5rem 1rem;
      text-align: center;
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(255, 74, 141, 0.1) 100%);
    }

    .cta-container {
      max-width: 800px;
      margin: 0 auto;
    }

    .cta h2 {
      font-family: 'Press Start 2P', cursive;
      font-size: 2rem;
      margin-bottom: 1.5rem;
      color: var(--pink-accent);
    }

    .cta p {
      font-size: 1.25rem;
      margin-bottom: 2rem;
    }

    .cta-buttons {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    /* ===== FOOTER ===== */
    footer {
      background-color: var(--header-bg);
      padding: 3rem 1rem 1rem;
      color: var(--text);
    }

    .footer-container {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2rem;
    }

    .footer-section h4 {
      font-size: 1.2rem;
      margin-bottom: 1rem;
      color: var(--purple-accent);
    }

    .footer-links {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer-links li {
      margin-bottom: 0.5rem;
    }

    .footer-links a {
      color: var(--text);
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .footer-links a:hover {
      color: var(--pink-accent);
    }

    .social-links {
      display: flex;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .social-links a {
      color: var(--text);
      font-size: 1.5rem;
      transition: color 0.3s ease;
    }

    .social-links a:hover {
      color: var(--pink-accent);
    }

    .contact-info a {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--text);
      text-decoration: none;
      margin-bottom: 0.5rem;
      transition: color 0.3s ease;
    }

    .contact-info a:hover {
      color: var(--pink-accent);
    }

    .footer-bottom {
      text-align: center;
      margin-top: 3rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border);
      font-size: 0.9rem;
      color: var(--item-details);
    }

    /* ===== AGE GATE ===== */
.age-gate {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;  /* CHANGE THIS FROM 'flex' TO 'none' */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
}

    .age-gate h2 {
      font-family: 'Press Start 2P', cursive;
      font-size: 2rem;
      color: var(--pink-accent);
      margin-bottom: 2rem;
    }

    .age-gate p {
      font-size: 1.25rem;
      color: white;
      max-width: 600px;
      margin-bottom: 2rem;
    }

    .age-gate-buttons {
      display: flex;
      gap: 1rem;
    }

    /* ===== SKELETON LOADING ===== */
    .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); }
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      .hero h1 {
        font-size: 2rem;
      }
      
      .hero p {
        font-size: 1.1rem;
      }
      
      .features h2,
      .popular-trades h2,
      .recent-trades h2 {
        font-size: 1.5rem;
      }
      
      .cta h2 {
        font-size: 1.8rem;
      }
      
      .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
      }
    }

    @media (max-width: 480px) {
      .hero h1 {
        font-size: 1.8rem;
      }
      
      .hero-buttons,
      .cta-buttons,
      .age-gate-buttons {
        flex-direction: column;
        width: 100%;
      }
      
      .btn {
        width: 100%;
      }
      
      .items-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
      }
    }

    /* Animation */
    @keyframes float {
      0%, 100% {
        transform: translateY(0);
      }
      50% {
        transform: translateY(-10px);
      }
    }

    .floating {
      animation: float 3s ease-in-out infinite;
    }
    /* ===== TRADING FLOOR STYLES ===== */
    .trading-floor {
      background: var(--card-bg);
      border-radius: 16px;
      padding: 1.5rem;
      border: 2px solid var(--accent-color);
      box-shadow: var(--accent-glow);
      max-width: 1000px;
      margin: 0 auto;
    }

    .trading-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
      border-bottom: 2px solid var(--border);
      padding-bottom: 0.75rem;
    }

    .trading-header h2 {
      font-family: 'Press Start 2P', cursive;
      font-size: 1.4rem;
      margin: 0;
      color: var(--purple-accent);
    }

    .live-indicator {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      background: #ff4444;
      color: white;
      padding: 0.3rem 0.8rem;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: bold;
    }

    .pulse-dot {
      width: 8px;
      height: 8px;
      background: white;
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% { opacity: 1; }
      50% { opacity: 0.3; }
      100% { opacity: 1; }
    }

    .trades-feed {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .trade-alert {
      padding: 1rem;
      background: var(--bubble-bg);
      border-radius: 12px;
      border-left: 4px solid var(--pink-accent);
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .trade-alert::before {
      content: "";
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
      transition: left 0.5s ease;
    }

    .trade-alert.new::before {
      left: 100%;
    }

    .trade-alert:hover {
      transform: translateX(5px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .trade-alert:hover::before {
      left: 100%;
    }

    .trade-badge {
      background: var(--accent-color);
      color: white;
      padding: 0.2rem 0.6rem;
      border-radius: 8px;
      font-size: 0.7rem;
      font-weight: bold;
      margin-bottom: 0.5rem;
      display: inline-block;
    }

    .trade-content {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .trader {
      font-weight: bold;
      color: var(--purple-accent);
    }

    .trade-arrow {
      color: var(--pink-accent);
      font-weight: bold;
      font-size: 1.1rem;
    }

    .trade-items {
      color: var(--text);
      font-size: 0.9rem;
      flex: 1;
      min-width: 200px;
    }

    /* Mobile responsiveness */
    @media (max-width: 768px) {
      .trading-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
      }
      
      .trade-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
      }
      
      .trade-items {
        min-width: auto;
      }
    }

    /* 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;
}


/* ===== AUTH MODAL STYLES ===== */
.auth-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;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.auth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal-content {
  background: var(--card-bg);
  border-radius: 16px;
  width: 100%;
  max-width: 450px;
  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;
  position: relative;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-modal-header {
  background: var(--accent-color);
  color: white;
  padding: 1.5rem 2rem;
  position: relative;
  flex-shrink: 0;
  text-align: center;
}

.auth-modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-modal-title i {
  color: var(--boosted-color);
}

.auth-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;
}

.auth-close-modal:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.auth-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.auth-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  background: none;
  border: none;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.auth-tab.active {
  color: var(--accent-color);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-color);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.auth-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.auth-form .form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.auth-form .form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-form .form-error {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.auth-form .form-error.show {
  display: block;
}

.auth-modal .age-verification {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--bubble-bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.auth-modal .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.auth-modal .checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.auth-modal .checkbox-group label {
  font-weight: normal;
  margin-bottom: 0;
  line-height: 1.4;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--item-details);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  padding: 0 1rem;
  font-size: 0.9rem;
}

.social-auth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.social-btn.google {
  background: white;
  color: #757575;
  border: 1px solid #ddd;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn.google:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.social-btn .btn-text {
  transition: opacity 0.2s ease;
}

.social-btn.loading .btn-text {
  opacity: 0;
}

.social-btn .btn-loader {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #757575;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.social-btn.loading .btn-loader {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-form-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* SCOPE ALL BUTTON STYLES TO AUTH MODAL ONLY */
.auth-modal .btn {
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 1rem;
  min-width: 120px;
}

.auth-modal .btn-secondary {
  background: var(--bubble-bg);
  color: var(--text);
}

.auth-modal .btn-secondary:hover {
  background: var(--bubble-hover-bg);
}

.auth-modal .btn-primary {
  background: var(--accent-color);
  color: white;
}

.auth-modal .btn-primary:hover {
  background: var(--nav-link-hover);
  transform: translateY(-2px);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--item-details);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Success/Error notifications */
.auth-notification {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}

.auth-notification.error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid var(--error-color);
  color: var(--error-color);
}

.auth-notification.success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid var(--success-color);
  color: var(--success-color);
}

.auth-notification.show {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .auth-modal-overlay {
    padding: 10px;
    align-items: flex-start;
  }
  
  .auth-modal-content {
    max-height: 95vh;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .auth-modal-header {
    padding: 1.25rem 1.5rem;
  }
  
  .auth-modal-body {
    padding: 1.5rem;
  }
  
  .auth-modal-title {
    font-size: 1.3rem;
  }
  
  .auth-close-modal {
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .auth-modal-header {
    padding: 1rem 1.25rem;
  }
  
  .auth-modal-body {
    padding: 1.25rem;
  }
  
  .auth-form-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .auth-modal .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .social-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .auth-tab {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}

/* 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);
  }
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Reduced from 0.75rem */
  text-decoration: none;
}

.logo img {
  height: 60px;
  width: auto;.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;
}
  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;
}

/* ===== 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;
}
