﻿   :root {
     
      --bg-card: #ffffff;
      --bg-popup: #f8fafc;
      --text-main: #0f172a;
      --text-muted: #64748b;
      --accent: #4f46e5;
      --danger: #ef4444;
      
      /* Pure Physical 3D Elevation Shadows */
      --shadow-popup-3d: 
        0px 30px 60px -12px rgba(15, 23, 42, 0.25),
        0px 12px 24px -4px rgba(15, 23, 42, 0.15),
        inset 0px 1px 0px rgba(255, 255, 255, 0.8);
      
      --shadow-card-3d:
        0px 10px 25px -5px rgba(0, 0, 0, 0.05),
        0px 4px 10px -3px rgba(0, 0, 0, 0.03),
        inset 0px 1px 0px rgba(255, 255, 255, 0.9);
        
      --shadow-btn-3d:
        0px 4px 6px -1px rgba(0, 0, 0, 0.08),
        inset 0px -2px 0px rgba(0, 0, 0, 0.05);
    }


    /* Scrollable Stream Space */
    .popup-grid-stream {
      overflow-y: auto;
      padding: 4px 10px 20px 10px; 
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
      gap: 28px;
    }

    .popup-grid-stream::-webkit-scrollbar { width: 8px; }
    .popup-grid-stream::-webkit-scrollbar-track { background: transparent; }
    .popup-grid-stream::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

    /* ==========================================================================
       INDIVIDUAL INDEPENDENT 3D CARDS
       ========================================================================== */
    
    .gallery-card-3d {
      background: var(--bg-card);
      padding: 18px;
      border-radius: 24px;
      border: 1px solid rgba(0, 0, 0, 0.01);
      box-shadow: var(--shadow-card-3d);
      transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
      display: flex;
      flex-direction: column;
    }

    .gallery-card-3d:hover {
      transform: translateY(-5px);
      box-shadow: 0px 20px 35px -5px rgba(0, 0, 0, 0.08);
    }

    .card-actions {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 14px; 
      z-index: 10;
    }


    /* Recessed Inset Image Display Box - TUNED FOR 400x400 SQUARES */
    .image-container-3d {
      width: 100%;
      height: 280px; /* Optimized frame height for square images */
      border-radius: 18px;
      overflow: hidden;
      position: relative;
      background: #e2e8f0;
      box-shadow: inset 0px 3px 8px rgba(0, 0, 0, 0.12);
    }

    .gallery-image {
      width: 100%;
      height: 100%;
      object-fit: cover; /* Keeps aspect ratio perfectly scaled inside the 3D wrapper */
    }

    .clam-badge {
      position: absolute;
      bottom: 12px;
      left: 12px;
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(4px);
      padding: 5px 12px;
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      color: var(--accent);
      border-radius: 10px;
      box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.06);
    }

    /* Detail Specs Layout Rows */
    .card-details {
      margin-top: 16px;
      padding: 0 2px;
    }

    .detail-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 0;
    }

    .detail-row:not(:last-child) {
      border-bottom: 1px dashed #e2e8f0;
    }

    .detail-label {
      font-size: 0.82rem;
      color: var(--text-muted);
      font-weight: 500;
    }

    .detail-value {
      font-size: 0.9rem;
      color: var(--text-main);
      font-weight: 600;
    }
        .setcl {
            align-content: space-around;
    background: #524c9f;
    color: #fff;
    border-radius: 10px;
    padding: 0px 22px;
    font-weight: 700;
        }
        .setcl2 {
        width: 40%;
    display: flex;
    justify-content: flex-end;
        }


        .select-box {
            position: relative;
        }
