 /* ===== Core Styles ===== */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background-color: #1A1A2E;
      font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      color: #E8D5B7;
      overflow-x: hidden;
      line-height: 1.6;
    }

    /* ===== Header ===== */
    .gallery-header {
      text-align: center;
      padding: 2rem 1rem;
    }

    .gallery-header h1 {
      font-size: clamp(1.8rem, 5vw, 2.6rem);
      color: #E8D5B7;
      text-shadow: 0 0 15px rgba(212, 160, 39, 0.4), 0 0 25px rgba(184, 51, 47, 0.3);
      letter-spacing: 2px;
      margin-bottom: 1rem;
      font-weight: 700;
    }

    /* ===== Filter Buttons ===== */
    .filters {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.8rem;
      padding: 1rem;
      margin-bottom: 1rem;
    }

    .filter-btn {
      background: rgba(232, 213, 183, 0.06);
      border: 1px solid rgba(212, 160, 39, 0.3);
      backdrop-filter: blur(8px);
      color: #E8D5B7;
      padding: 10px 18px;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-family: 'Poppins', sans-serif;
      font-size: 0.95rem;
      font-weight: 500;
      box-shadow: 0 0 10px rgba(212, 160, 39, 0.1), inset 0 0 20px rgba(212, 160, 39, 0.05);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      position: relative;
      overflow: hidden;
    }

    .filter-btn::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 300%;
      height: 300%;
      background: radial-gradient(circle, rgba(212,160,39,0.25) 0%, transparent 70%);
      transition: all 0.4s ease;
      border-radius: 50%;
      transform: translate(-50%, -50%) scale(0);
      z-index: 0;
    }

    .filter-btn:hover::before,
    .filter-btn.active::before {
      transform: translate(-50%, -50%) scale(1);
    }

    .filter-btn span {
      position: relative;
      z-index: 1;
    }

    .filter-btn:hover,
    .filter-btn.active {
      background: rgba(184, 51, 47, 0.25);
      color: #fff;
      border-color: rgba(212, 160, 39, 0.6);
      box-shadow: 0 0 20px rgba(212, 160, 39, 0.8), 0 0 30px rgba(184, 51, 47, 0.5), inset 0 0 25px rgba(212, 160, 39, 0.3);
    }

    /* ===== Gallery Grid ===== */
    .gallery-container {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 25px;
      padding: 30px;
      max-width: 1400px;
      margin: 0 auto;
    }

    .gallery-item {
      position: relative;
      border-radius: 18px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.4s ease, box-shadow 0.4s ease;
      border: 1px solid rgba(212, 160, 39, 0.15);
      box-shadow: 0 0 15px rgba(212, 160, 39, 0.1), inset 0 0 10px rgba(184, 51, 47, 0.05);
      aspect-ratio: 1;
    }

    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: all 0.3s ease;
      filter: brightness(0.9) contrast(1.05);
    }

    .gallery-item:hover {
      transform: scale(1.05);
      box-shadow: 0 0 25px rgba(212, 160, 39, 0.3), 0 0 45px rgba(184, 51, 47, 0.25), inset 0 0 20px rgba(212, 160, 39, 0.15);
    }

    .gallery-item:hover img {
      filter: brightness(1.1) contrast(1.1);
    }

    /* ===== Popup Overlay ===== */
    .glass-popup {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(10, 10, 20, 0.95);
      backdrop-filter: blur(25px);
      justify-content: center;
      align-items: flex-start;
      z-index: 9998;
      padding: 1rem;
      overflow-y: auto;
      animation: fadeIn 0.3s ease;
    }

    .glass-popup.active {
      display: flex;
    }

    /* ===== Popup Content ===== */
    .popup-content {
      position: relative;
      background: rgba(26, 26, 46, 0.8);
      border: 1px solid rgba(212, 160, 39, 0.3);
      border-radius: 20px;
      padding: clamp(1.5rem, 5vw, 2.5rem);
      width: 100%;
      max-width: 620px;
      margin: auto;
      text-align: center;
      box-shadow: 0 0 30px rgba(212, 160, 39, 0.3), inset 0 0 20px rgba(184, 51, 47, 0.15);
      animation: popupFadeIn 0.3s ease forwards;
      backdrop-filter: blur(10px);
    }

    .popup-img-wrapper {
      position: relative;
      margin-bottom: 1.5rem;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid rgba(212, 160, 39, 0.2);
    }

    .popup-content img {
      width: 100%;
      max-height: 400px;
      object-fit: cover;
      box-shadow: 0 0 20px rgba(212, 160, 39, 0.25);
    }

    .popup-content h2 {
      font-size: clamp(1.3rem, 4vw, 1.8rem);
      margin-bottom: 1rem;
      color: #E8D5B7;
      text-shadow: 0 0 10px rgba(212, 160, 39, 0.3);
      font-weight: 700;
    }

    /* ===== Meta Info ===== */
    .nft-meta {
      background: rgba(212, 160, 39, 0.05);
      border-left: 3px solid rgba(212, 160, 39, 0.4);
      border-radius: 12px;
      padding: 1rem;
      margin: 1rem 0;
      text-align: left;
    }

    .nft-meta p {
      margin: 0.6rem 0;
      font-size: 0.95rem;
      color: #cbbfa2;
      font-weight: 500;
    }

    .nft-meta strong {
      color: #E8D5B7;
      font-weight: 600;
    }

    /* ===== Description Box ===== */
    .desc-box {
      background: rgba(184, 51, 47, 0.08);
      border-left: 3px solid rgba(212, 160, 39, 0.4);
      border-radius: 12px;
      padding: 1rem;
      margin: 1rem 0;
      text-align: left;
      max-height: 200px;
      overflow-y: auto;
      transition: max-height 0.4s ease;
    }

    .desc-box.expanded {
      max-height: 600px;
    }

    .desc-box p {
      color: #cbbfa2;
      font-size: 0.95rem;
      line-height: 1.7;
      margin: 0.5rem 0;
    }

    /* ===== Buttons ===== */
    .glass-btn {
      display: inline-block;
      background: rgba(232, 213, 183, 0.06);
      border: 1px solid rgba(212, 160, 39, 0.3);
      padding: 10px 18px;
      border-radius: 12px;
      margin: 5px;
      color: #E8D5B7;
      text-decoration: none;
      cursor: pointer;
      font-family: 'Poppins', sans-serif;
      font-size: 0.9rem;
      font-weight: 500;
      transition: all 0.3s ease;
      box-shadow: 0 0 10px rgba(212, 160, 39, 0.15), inset 0 0 20px rgba(212, 160, 39, 0.05);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      position: relative;
      overflow: hidden;
    }

    .glass-btn::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 300%;
      height: 300%;
      background: radial-gradient(circle, rgba(212,160,39,0.25) 0%, transparent 70%);
      transition: all 0.4s ease;
      border-radius: 50%;
      transform: translate(-50%, -50%) scale(0);
      z-index: 0;
    }

    .glass-btn:hover::before,
    .glass-btn:focus::before {
      transform: translate(-50%, -50%) scale(1);
    }

    .glass-btn span {
      position: relative;
      z-index: 1;
    }

    .glass-btn:hover,
    .glass-btn:focus {
      background: rgba(184, 51, 47, 0.25);
      color: #fff;
      border-color: rgba(212, 160, 39, 0.6);
      box-shadow: 0 0 20px rgba(212, 160, 39, 0.8), 0 0 35px rgba(184, 51, 47, 0.5), inset 0 0 25px rgba(212, 160, 39, 0.3);
      transform: scale(1.05);
      outline: none;
    }

    .glass-btn:active {
      transform: scale(0.98);
    }

    /* ===== Close Button ===== */
    .close-popup {
      position: absolute;
      top: 1rem;
      right: 1rem;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(184, 51, 47, 0.25);
      border: 1px solid rgba(212, 160, 39, 0.4);
      border-radius: 10px;
      color: #E8D5B7;
      font-size: 18px;
      cursor: pointer;
      transition: all 0.3s ease;
      z-index: 10;
      font-weight: 700;
      position: relative;
      overflow: hidden;
    }

    .close-popup::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 300%;
      height: 300%;
      background: radial-gradient(circle, rgba(212,160,39,0.25) 0%, transparent 70%);
      transition: all 0.4s ease;
      border-radius: 50%;
      transform: translate(-50%, -50%) scale(0);
      z-index: 0;
    }

    .close-popup:hover::before,
    .close-popup:focus::before {
      transform: translate(-50%, -50%) scale(1);
    }

    .close-popup span {
      position: relative;
      z-index: 1;
    }

    .close-popup:hover,
    .close-popup:focus {
      background: rgba(184, 51, 47, 0.4);
      color: #fff;
      box-shadow: 0 0 15px rgba(212, 160, 39, 0.6);
      outline: none;
      transform: scale(1.1);
    }

    /* ===== Actions ===== */
    .popup-actions {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.8rem;
      margin-top: 1rem;
    }

    /* ===== Animations ===== */
    @keyframes popupFadeIn {
      from {
        opacity: 0;
        transform: scale(0.95);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    /* ===== Scrollbar ===== */
    .desc-box::-webkit-scrollbar {
      width: 6px;
    }

    .desc-box::-webkit-scrollbar-track {
      background: rgba(212, 160, 39, 0.05);
      border-radius: 10px;
    }

    .desc-box::-webkit-scrollbar-thumb {
      background: rgba(212, 160, 39, 0.3);
      border-radius: 10px;
    }

    .desc-box::-webkit-scrollbar-thumb:hover {
      background: rgba(212, 160, 39, 0.5);
    }

    /* ===== Responsive ===== */
    @media (max-width: 768px) {
      .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
        padding: 15px;
      }

      .popup-content {
        border-radius: 16px;
        max-width: 95vw;
      }

      .gallery-header h1 {
        font-size: 1.6rem;
      }

      .glass-popup {
        padding: 0.5rem;
      }

      .nft-meta {
        font-size: 0.85rem;
      }

      .desc-box {
        max-height: 150px;
      }

      .desc-box.expanded {
        max-height: 400px;
      }

      .glass-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
      }

      .filters {
        gap: 0.5rem;
        padding: 0.8rem;
      }

      .filter-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
      }
    }

    @media (max-width: 480px) {
      .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
        padding: 10px;
      }

      .popup-content {
        padding: 1rem;
      }

      .gallery-header h1 {
        font-size: 1.4rem;
      }

      .gallery-header {
        padding: 1rem 0.5rem;
      }

      .filters {
        gap: 0.5rem;
        padding: 0.5rem;
      }

      .filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
      }
    }