/* ===== MATCH index.php CART UI ===== */
    
    
    
    
    
    

    /* ===== MATCH index.php PREVIEW BUTTON ===== */
    
    
    
    

    /* REMIXER PROFILE PACK CARDS */
    .profile-packs-section{margin-bottom:18px;background:#151515;border:1px solid #292929;border-radius:14px;padding:14px;}
    .profile-packs-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:10px;}
    .profile-packs-title{font-size:18px;font-weight:950;margin:0;}
    .profile-packs-sub{font-size:12px;color:#aaa;}
    .profile-pack-grid{display:flex;flex-direction:column;gap:10px;}
    .profile-pack-card{background:#101010;border:1px solid #282828;border-radius:13px;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;}
    .profile-pack-title{font-size:15px;font-weight:950;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .profile-pack-meta{display:flex;flex-wrap:wrap;gap:8px;color:#aaa;font-size:12px;margin-top:5px;}
    .profile-pack-price{color:#ffc800;font-size:15px;font-weight:950;margin-top:6px;}
    .profile-pack-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;}
    .profile-pack-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;border-radius:9px;text-decoration:none;font-weight:900;font-size:12px;padding:0 12px;white-space:nowrap;}
    .profile-pack-view{background:#2a2a2a;color:#fff;}
    .profile-pack-cart{width:42px;height:42px;padding:0!important;border-radius:50%;background:transparent;color:#fff;}
    .profile-pack-cart .ap-ico{width:34px;height:34px;display:block;}
    .profile-pack-cart .ap-ico-plus{display:none;}
    .profile-pack-cart.is-added .ap-ico-cart{display:none;}
    .profile-pack-cart.is-added .ap-ico-plus{display:block;color:#ff9800;}
    body.theme-light .profile-packs-section,
    body.theme-light .profile-pack-card{background:#fff!important;color:#111!important;border-color:#ddd!important;}
    body.theme-light .profile-pack-title,
    body.theme-light .profile-pack-meta{color:#111!important;}
    body.theme-light .profile-pack-cart,
    body.theme-light .profile-pack-cart .ap-ico{color:#000!important;}
    @media (max-width:700px){.profile-pack-card{grid-template-columns:1fr}.profile-pack-actions{justify-content:flex-start}.profile-pack-title{white-space:normal}}


    .remixer-profile-banner-wrap{
        width:100%;
        margin:0 0 24px;
        border-radius:18px;
        overflow:hidden;
        background:#111;
        border:1px solid #262626;
        box-shadow:0 10px 26px rgba(0,0,0,.25);
    }
    .remixer-profile-banner{
        display:block;
        width:100%;
        max-width:100%;
        height:auto;
        max-height:none;
        object-fit:contain;
        background:#111;
    }
    .remixer-profile-banner-placeholder{
        width:100%;
        aspect-ratio:4/1;
        min-height:120px;
        display:flex;
        align-items:center;
        justify-content:center;
        background:linear-gradient(135deg,#111,#222);
        color:#ffc800;
        font-size:28px;
        font-weight:950;
        letter-spacing:.08em;
        text-transform:uppercase;
    }
    body.theme-light .remixer-profile-banner-wrap{background:#fff!important;border-color:#ddd!important;box-shadow:0 10px 24px rgba(0,0,0,.08)!important;}
    body.theme-light .remixer-profile-banner-placeholder{background:linear-gradient(135deg,#f7f7f7,#e9e9e9)!important;color:#111!important;}
    @media (max-width:700px){.remixer-profile-banner-placeholder{min-height:90px;font-size:18px}.remixer-profile-banner-wrap{border-radius:14px;margin-bottom:16px}.remixer-profile-banner{width:100%;height:auto;max-height:none}}

    /* REMIXER LAYOUT (LEFT PROFILE + RIGHT LIST) */
    .remixer-layout {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 24px;
        align-items: flex-start;
    }
    .remixer-sidebar {
        background: #181818;
        border-radius: 10px;
        padding: 16px;
        text-align: center;
    }
    .remixer-avatar {
        width: 140px;
        height: 140px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #ff9800;
        margin-bottom: 12px;
    }
    .fb-share-profile-btn {
        display:inline-flex;
        align-items:center;
        justify-content:center;
        gap:7px;
        min-height:34px;
        padding:0 12px;
        margin:0 auto 12px;
        border-radius:999px;
        background:#1877f2;
        color:#fff;
        text-decoration:none;
        font-size:12px;
        font-weight:900;
        box-shadow:0 4px 12px rgba(0,0,0,.25);
    }
    .fb-share-profile-btn:hover { filter:brightness(1.08); transform:translateY(-1px); }
    .remixer-name {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 6px;
    }
    .remixer-sales {
        font-size: 12px;
        color: #aaa;
        margin-bottom: 10px;
    }
    .remixer-bio-title {
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: #ff9800;
        margin-top: 10px;
        margin-bottom: 4px;
        text-align: left;
    }
    .remixer-bio {
        font-size: 13px;
        color: #ddd;
        text-align: left;
        white-space: pre-line;
    }
    .remixer-share-link {
        margin-top: 12px;
        font-size: 12px;
        word-break: break-all;
        text-align: left;
    }

    /* TOP REMIXERS CARD STYLE */
    .sidebar-section {
        margin-top: 16px;
        background: #151515;
        border-radius: 10px;
        padding: 10px 10px 8px;
        font-size: 13px;
        text-align: left;
    }
    .sidebar-section h3 {
        margin: 0 0 8px;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: #ffc800;
    }
    .sidebar-list {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }
    .sidebar-list li {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 4px;
        padding: 4px 6px;
        border-radius: 6px;
        transition: background 0.15s ease, transform 0.15s ease;
    }
    .sidebar-list li:hover {
        background: #222;
        transform: translateX(2px);
    }
    .sidebar-rank {
        font-size: 11px;
        opacity: .7;
        width: 20px;
        text-align: right;
        flex-shrink: 0;
    }
    .sidebar-avatar {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        overflow: hidden;
        flex-shrink: 0;
        background: #222;
    }
    .sidebar-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .sidebar-link {
        flex: 1;
        display: inline-flex;
        align-items: center;
        gap: 3px;
        color: #fff;
        text-decoration: none;
        font-size: 13px;
        min-width: 0;
    }
    .sidebar-name {
        flex: 1;
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .sidebar-list li.active > a,
    .sidebar-list li.active > .sidebar-link {
        color: #ffc800;
        font-weight: bold;
    }

    @media  (max-width: 900px) {
        .remixer-layout { grid-template-columns: 1fr; }
        .remixer-sidebar { order: -1; }
    }

    .table-wrapper { width: 100%; overflow-x: auto; }
    
    
    
    .share-help{font-size:11px;color:#aaa;line-height:1.35;margin-top:5px}
    .share-box{margin-top:12px;background:#0f0f0f;border:1px solid #262626;border-radius:12px;padding:10px;text-align:left}
    .share-box-title{font-size:12px;font-weight:900;color:#ffc800;margin-bottom:7px}
    .share-link-row{display:flex;gap:6px}
    .share-link-row input{flex:1;min-width:0;background:#1b1b1b;color:#fff;border:1px solid #333;border-radius:8px;padding:8px;font-size:11px}
    .copy-profile-link{background:#ffc800;color:#000;border:0;border-radius:8px;padding:8px 10px;font-weight:900;cursor:pointer}
.profile-pack-grid.front-pack-layout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:14px}
    .profile-pack-card.pack-square-card{position:relative;min-height:0;aspect-ratio:1/1;background:linear-gradient(180deg,rgba(0,0,0,.10),rgba(0,0,0,.86)),linear-gradient(135deg,#202020,#080808);background-size:cover;background-position:center;border:1px solid #282828;border-radius:0;padding:16px;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden}
    .profile-pack-card.pack-square-card .profile-pack-title{font-size:17px;font-weight:950;color:#fff;text-shadow:0 2px 5px #000;line-height:1.12;margin-bottom:7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    .profile-pack-card.pack-square-card .profile-pack-meta{display:flex;gap:8px;flex-wrap:wrap;font-size:12px;color:#eee;text-shadow:0 2px 5px #000}
    .profile-pack-card.pack-square-card .profile-pack-price{font-size:15px;color:#ffc800;font-weight:950;text-shadow:0 2px 5px #000;margin-top:7px}
    .profile-pack-card.pack-square-card .profile-pack-actions{display:flex;align-items:center;gap:10px;margin-top:12px}
    .profile-pack-card.pack-square-card .profile-pack-view{background:#ffc800;color:#000;text-decoration:none;font-weight:950;border-radius:9px;padding:9px 12px;font-size:12px}
    .profile-pack-card.pack-square-card .profile-pack-cart{background:transparent!important;color:#fff!important;border:0!important;width:38px;height:38px;padding:0;display:inline-flex;align-items:center;justify-content:center}
    .profile-pack-card.pack-square-card .profile-pack-cart .ap-ico{width:30px;height:30px;filter:drop-shadow(0 2px 4px #000)}
    .profile-pack-card.pack-square-card .profile-pack-cart.is-added{color:#ffc800!important}
    .profile-pack-search-matches{margin-top:12px;background:rgba(0,0,0,.62);border:1px solid rgba(255,255,255,.12);border-radius:10px;overflow:hidden}
    
    
    .profile-pack-search-avatar{width:32px;height:32px;border-radius:50%;overflow:hidden;background:#222}
    .profile-pack-search-avatar img{width:100%;height:100%;object-fit:cover}
    .profile-pack-search-title{font-size:12px;font-weight:900;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .profile-pack-search-sub{font-size:11px;color:#cfcfcf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    @media (max-width:980px){.profile-pack-grid.front-pack-layout{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media (max-width:620px){.profile-pack-grid.front-pack-layout{grid-template-columns:1fr}}

    /* PATCH: show Remix Pack album image/profile fallback + make card clickable */
    .profile-pack-card.pack-square-card{cursor:pointer!important;position:relative!important;}
    .profile-pack-cover{position:absolute;inset:0;z-index:0;overflow:hidden;background:#070707;pointer-events:none;}
    .profile-pack-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.08) 0%,rgba(0,0,0,.35) 42%,rgba(0,0,0,.90) 100%);pointer-events:none;}
    .profile-pack-cover img{width:100%;height:100%;object-fit:cover;display:block;border-radius:0!important;transition:transform .18s ease;}
    .profile-pack-card.pack-square-card:hover .profile-pack-cover img{transform:scale(1.025);}
    .profile-pack-card.pack-square-card .profile-pack-main,
    .profile-pack-card.pack-square-card .profile-pack-actions,
    .profile-pack-card.pack-square-card .profile-pack-search-matches{position:relative;z-index:2;}

    main.container {
        padding-bottom: 110px;
    }
    

/* ===================== PATCH: Profile remix pack small avatar only (keep admin/default background) ===================== */
.profile-pack-card.pack-square-card{
  cursor:pointer!important;
  position:relative!important;
  overflow:hidden!important;
  background-size:cover!important;
  background-position:center!important;
}
.profile-pack-card.pack-square-card .profile-pack-cover{
  display:block!important;
  position:absolute!important;
  left:12px!important;
  bottom:12px!important;
  top:auto!important;
  right:auto!important;
  inset:auto auto 12px 12px!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  min-height:30px!important;
  z-index:4!important;
  border:1px solid rgba(255,255,255,.45)!important;
  border-radius:50%!important;
  overflow:hidden!important;
  background:#111!important;
  box-shadow:0 2px 7px rgba(0,0,0,.72)!important;
  pointer-events:none!important;
}
.profile-pack-card.pack-square-card .profile-pack-cover::after{display:none!important;content:none!important;}
.profile-pack-card.pack-square-card .profile-pack-cover img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
  border-radius:50%!important;
  transform:none!important;
  transition:none!important;
}
.profile-pack-card.pack-square-card:hover .profile-pack-cover img{transform:none!important;}
.profile-pack-card.pack-square-card .profile-pack-main,
.profile-pack-card.pack-square-card .profile-pack-actions,
.profile-pack-card.pack-square-card .profile-pack-search-matches{
  position:relative!important;
  z-index:2!important;
}
.profile-pack-card.pack-square-card .profile-pack-actions{
  padding-left:42px!important;
}


/* FINAL FIX: small remixer avatar badge on profile remix pack albums.
   Uses a new class so old .profile-pack-cover/full-cover rules cannot affect it. */
.profile-pack-card.pack-square-card{
  position:relative!important;
  overflow:hidden!important;
}
.profile-pack-card.pack-square-card .profile-pack-cover{
  display:none!important;
}
.profile-pack-card.pack-square-card .profile-pack-avatar-badge{
  display:block!important;
  position:absolute!important;
  left:12px!important;
  bottom:12px!important;
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  min-height:32px!important;
  z-index:40!important;
  border:1px solid rgba(255,255,255,.62)!important;
  border-radius:50%!important;
  overflow:hidden!important;
  background:#111!important;
  box-shadow:0 2px 8px rgba(0,0,0,.80)!important;
  pointer-events:none!important;
}
.profile-pack-card.pack-square-card .profile-pack-avatar-badge img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:50%!important;
}
.profile-pack-card.pack-square-card .profile-pack-actions{
  padding-left:44px!important;
}
